mirror of
https://github.com/PhotonVision/photonvision
synced 2026-06-19 00:41:41 +00:00
--------- Co-authored-by: Sriman Achanta <68172138+srimanachanta@users.noreply.github.com>
32 lines
764 B
Groovy
32 lines
764 B
Groovy
plugins {
|
|
id "com.diffplug.spotless" version "6.1.2"
|
|
id "edu.wpi.first.GradleRIO" version "2024.1.1-beta-2" apply false
|
|
}
|
|
|
|
apply from: "examples.gradle"
|
|
|
|
allprojects {
|
|
repositories {
|
|
mavenCentral()
|
|
mavenLocal()
|
|
maven { url = "https://maven.photonvision.org/repository/internal/" }
|
|
}
|
|
}
|
|
|
|
spotless {
|
|
java {
|
|
toggleOffOn()
|
|
googleJavaFormat()
|
|
indentWithTabs(2)
|
|
indentWithSpaces(4)
|
|
removeUnusedImports()
|
|
trimTrailingWhitespace()
|
|
endWithNewline()
|
|
}
|
|
java {
|
|
target "**/*.java"
|
|
targetExclude("photon-core/src/main/java/org/photonvision/PhotonVersion.java")
|
|
targetExclude("photon-lib/src/main/java/org/photonvision/PhotonVersion.java")
|
|
}
|
|
}
|