Skip to content

Commit

Permalink
Trying to fix the wpi interface build.gradle
Browse files Browse the repository at this point in the history
  • Loading branch information
jkleiber committed Aug 21, 2024
1 parent aaef2ce commit 73d1879
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions wpi_interface/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ java {
targetCompatibility = JavaVersion.VERSION_17
}

def ROBOT_MAIN_CLASS = "frc.robot.Main"

def VISUALVM_PROFILE = false

// Define my targets (RoboRIO) and artifacts (deployable files)
Expand Down Expand Up @@ -101,25 +99,6 @@ test {
systemProperty 'junit.jupiter.extensions.autodetection.enabled', 'true'
}

// Simulation configuration (e.g. environment variables).
wpi.sim.addGui().defaultEnabled = true
wpi.sim.addDriverstation()

// Setting up my Jar File. In this case, adding all libraries into the main jar ('fat jar')
// in order to make them all available at runtime. Also adding the manifest so WPILib
// knows where to look for our Robot Class.
jar {
from { configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) } }
from sourceSets.main.allSource
manifest edu.wpi.first.gradlerio.GradleRIOPlugin.javaManifest(ROBOT_MAIN_CLASS)
duplicatesStrategy = DuplicatesStrategy.INCLUDE
}

// Configure jar and deploy tasks
deployArtifact.jarTask = jar
wpi.java.configureExecutableTasks(jar)
wpi.java.configureTestTasks(test)

// Configure string concat to always inline compile
tasks.withType(JavaCompile) {
options.compilerArgs.add '-XDstringConcat=inline'
Expand Down

0 comments on commit 73d1879

Please sign in to comment.