mirror of
https://github.com/PhotonVision/photonvision
synced 2026-06-19 00:41:41 +00:00
Removes apriltagExample and simposeest, replacing them with swervedriveposeestsim --------- Co-authored-by: Matt <matthew.morley.ca@gmail.com>
38 lines
869 B
Groovy
38 lines
869 B
Groovy
plugins {
|
|
id "com.diffplug.spotless" version "6.1.2"
|
|
}
|
|
|
|
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")
|
|
}
|
|
}
|
|
|
|
// Task that depends on the build task for every example
|
|
task buildAllExamples { task ->
|
|
exampleFolderNames.each { line ->
|
|
task.dependsOn(line + ":build")
|
|
}
|
|
}
|