Skip to content

Commit

Permalink
Bundle source in jar (wpilibsuite#589)
Browse files Browse the repository at this point in the history
This used to be done in Eclipse Plugins, allowing teams that lost their
source to recover it from the jar on the roboRIO.
  • Loading branch information
wpineth committed Mar 29, 2024
1 parent 2667955 commit 7e6c044
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions vscode-wpilib/resources/gradle/java/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ wpi.sim.addDriverstation()
// 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
}
Expand Down

0 comments on commit 7e6c044

Please sign in to comment.