2021-01-14 21:45:26 -05:00
|
|
|
plugins {
|
|
|
|
|
id "com.diffplug.gradle.spotless" version "3.28.0"
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
allprojects {
|
|
|
|
|
repositories {
|
|
|
|
|
jcenter()
|
|
|
|
|
mavenCentral()
|
|
|
|
|
maven {
|
|
|
|
|
url = "https://maven.photonvision.org/repository/internal/"
|
|
|
|
|
}
|
|
|
|
|
maven {
|
|
|
|
|
url = 'https://frcmaven.wpi.edu:443/artifactory/development'
|
|
|
|
|
}
|
2021-01-17 14:57:21 -08:00
|
|
|
maven {
|
|
|
|
|
url = 'https://frcmaven.wpi.edu:443/artifactory/release'
|
|
|
|
|
}
|
2021-01-14 21:45:26 -05:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
spotless {
|
|
|
|
|
java {
|
|
|
|
|
googleJavaFormat()
|
|
|
|
|
paddedCell()
|
|
|
|
|
indentWithTabs(2)
|
|
|
|
|
indentWithSpaces(4)
|
|
|
|
|
removeUnusedImports()
|
|
|
|
|
}
|
|
|
|
|
java {
|
|
|
|
|
target '**/*.java'
|
|
|
|
|
licenseHeaderFile "$rootDir/LicenseHeader.txt"
|
|
|
|
|
|
|
|
|
|
targetExclude('photon-core/src/main/java/org/photonvision/PhotonVersion.java')
|
|
|
|
|
}
|
|
|
|
|
}
|