11plugins {
22 id " java"
3- id " edu.wpi.first.GradleRIO" version " 2024.3.2 "
3+ id " edu.wpi.first.GradleRIO" version " 2025.1.1 "
44 id ' com.diffplug.spotless' version ' 6.25.0'
55}
66
7- sourceCompatibility = JavaVersion . VERSION_17
8- targetCompatibility = JavaVersion . VERSION_17
7+ java {
8+ sourceCompatibility = JavaVersion . VERSION_17
9+ targetCompatibility = JavaVersion . VERSION_17
10+ }
911
1012def ROBOT_MAIN_CLASS = " frc.robot.Main"
1113
@@ -32,6 +34,9 @@ deploy {
3234 frcStaticFileDeploy(getArtifactTypeClass(' FileTreeArtifact' )) {
3335 files = project. fileTree(' src/main/deploy' )
3436 directory = ' /home/lvuser/deploy'
37+ // Change to true to delete files on roboRIO that no
38+ // longer exist in deploy directory of this project
39+ deleteOldFiles = false
3540 }
3641 }
3742 }
@@ -49,6 +54,7 @@ def includeDesktopSupport = true
4954// Defining my dependencies. In this case, WPILib (+ friends), and vendor libraries.
5055// Also defines JUnit 5.
5156dependencies {
57+ annotationProcessor wpi. java. deps. wpilibAnnotations()
5258 implementation wpi. java. deps. wpilib()
5359 implementation wpi. java. vendor. java()
5460
@@ -66,10 +72,8 @@ dependencies {
6672 nativeRelease wpi. java. vendor. jniRelease(wpi. platforms. desktop)
6773 simulationRelease wpi. sim. enableRelease()
6874
69- testImplementation ' org.junit.jupiter:junit-jupiter-api:5.11.4'
70- testImplementation ' org.junit.jupiter:junit-jupiter-params:5.11.4'
71-
72- testRuntimeOnly ' org.junit.jupiter:junit-jupiter-engine:5.11.4'
75+ testImplementation ' org.junit.jupiter:junit-jupiter:5.11.4'
76+ testRuntimeOnly ' org.junit.platform:junit-platform-launcher'
7377}
7478
7579test {
9094 it. isDirectory() ? it : zipTree(it)
9195 }
9296 }
97+ from sourceSets. main. allSource
9398 manifest edu.wpi.first.gradlerio.GradleRIOPlugin . javaManifest(ROBOT_MAIN_CLASS )
9499 duplicatesStrategy = DuplicatesStrategy . INCLUDE
95100}
0 commit comments