From d993fee59935959e39c8bc07fd7f30c38efa289a Mon Sep 17 00:00:00 2001 From: STHobbes Date: Fri, 8 Dec 2023 22:04:04 -0800 Subject: [PATCH] fixed the build.gradle for release .jar --- README.md | 2 +- build.gradle | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index f93b3f0..38c7b73 100644 --- a/README.md +++ b/README.md @@ -72,7 +72,7 @@ option to: In github you will find an 0.9.5 release of the *SwervePathPlanning-0.9.5-all.jar* which you can run at the command line as: ``` -% java SwervePathPlanning-0.9.5-all.jar +% java -jar SwervePathPlanning-0.9.5-all.jar ``` See notes in the next section about command line arguments. While this is a running program, it lacks data for field, robot, or path descriptions; so, you may want to diff --git a/build.gradle b/build.gradle index b72611b..881251a 100644 --- a/build.gradle +++ b/build.gradle @@ -7,6 +7,10 @@ repositories { mavenCentral() } +tasks.jar { + manifest.attributes["Main-Class"] = "frc6831.planner.PathPlanner" +} + dependencies { implementation 'org.a05annex:a05annexUtil:0.9.6' // implementation fileTree(dir: 'libs', include: ['*.jar'])