From 84407f00cb38d3582240058778962e656506fb37 Mon Sep 17 00:00:00 2001 From: "Erik C. Thauvin" Date: Fri, 27 Oct 2023 03:14:16 -0700 Subject: [PATCH] Added bootjar, war and uberjar command --- README.md | 4 ++-- src/bld/java/com/example/springboot/ApplicationBuild.java | 7 ++++++- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index efc0b1c..68d7a4e 100644 --- a/README.md +++ b/README.md @@ -37,6 +37,6 @@ To run the web application tests, issue the following command: ## Creating and launching the executable JAR ``` -./bld jar -java -jar build/dist/demoapplication-0.1.0.jar +./bld bootjar +java -jar build/dist/demoapplication-0.1.0-boot.jar ``` diff --git a/src/bld/java/com/example/springboot/ApplicationBuild.java b/src/bld/java/com/example/springboot/ApplicationBuild.java index 4c71312..c3fee7c 100644 --- a/src/bld/java/com/example/springboot/ApplicationBuild.java +++ b/src/bld/java/com/example/springboot/ApplicationBuild.java @@ -39,9 +39,14 @@ public class ApplicationBuild extends WebProject { } @BuildCommand(summary = "Creates an executable JAR for the project") - public void jar() throws Exception { + public void bootjar() throws Exception { new BootJarOperation() .fromProject(this) .execute(); } + + @BuildCommand(summary = "Creates an executable JAR for the project") + public void uberjar() throws Exception { + bootjar(); + } } \ No newline at end of file