From 7e6c0447421ec0f21c3fe72076e91e5ad28dfc1f Mon Sep 17 00:00:00 2001 From: wpineth Date: Fri, 29 Mar 2024 12:30:45 -0400 Subject: [PATCH] Bundle source in jar (#589) This used to be done in Eclipse Plugins, allowing teams that lost their source to recover it from the jar on the roboRIO. --- vscode-wpilib/resources/gradle/java/build.gradle | 1 + 1 file changed, 1 insertion(+) diff --git a/vscode-wpilib/resources/gradle/java/build.gradle b/vscode-wpilib/resources/gradle/java/build.gradle index 8b4bbd0c..aca20f0a 100644 --- a/vscode-wpilib/resources/gradle/java/build.gradle +++ b/vscode-wpilib/resources/gradle/java/build.gradle @@ -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 }