2023-10-25 20:27:56 -04:00
|
|
|
plugins {
|
|
|
|
|
id "java"
|
|
|
|
|
id 'edu.wpi.first.WpilibTools' version '1.3.0'
|
|
|
|
|
}
|
2021-01-16 20:41:47 -08:00
|
|
|
|
2022-11-09 11:00:46 -08:00
|
|
|
apply from: "${rootDir}/shared/common.gradle"
|
|
|
|
|
|
2021-01-16 20:41:47 -08:00
|
|
|
dependencies {
|
2022-12-16 17:05:23 -08:00
|
|
|
implementation wpilibTools.deps.wpilibJava("wpimath")
|
2023-10-17 10:20:00 -04:00
|
|
|
implementation wpilibTools.deps.wpilibJava("apriltag")
|
2023-10-25 20:27:56 -04:00
|
|
|
implementation wpilibTools.deps.wpilibOpenCvJava("frc" + wpi.frcYear.get(), wpi.versions.opencvVersion.get())
|
|
|
|
|
|
|
|
|
|
implementation group: "org.ejml", name: "ejml-simple", version: wpi.versions.ejmlVersion.get()
|
2023-02-13 17:57:01 -05:00
|
|
|
|
|
|
|
|
// Junit
|
|
|
|
|
testImplementation("org.junit.jupiter:junit-jupiter-api:5.8.2")
|
|
|
|
|
testImplementation("org.junit.jupiter:junit-jupiter-params:5.8.2")
|
|
|
|
|
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.8.2")
|
2022-09-28 18:21:41 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
tasks.withType(JavaCompile) {
|
|
|
|
|
options.encoding = 'UTF-8'
|
|
|
|
|
}
|
|
|
|
|
tasks.withType(Javadoc) {
|
|
|
|
|
options.encoding = 'UTF-8'
|
2021-01-16 20:41:47 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
java {
|
|
|
|
|
withJavadocJar()
|
|
|
|
|
withSourcesJar()
|
|
|
|
|
}
|
|
|
|
|
|
2023-02-13 17:57:01 -05:00
|
|
|
test {
|
|
|
|
|
useJUnitPlatform()
|
|
|
|
|
}
|
|
|
|
|
|
2021-01-18 22:12:57 -05:00
|
|
|
apply from: "publish.gradle"
|