Skip to content

Commit

Permalink
adding bootjar command and entrypoint
Browse files Browse the repository at this point in the history
  • Loading branch information
sombriks committed May 5, 2024
1 parent bc280fc commit ff86766
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/bld/java/sample/htmx/spring/SampleHtmxSpringBuild.java
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,15 @@ public SampleHtmxSpringBuild() {
.include(dependency("org.springframework.boot:spring-boot-loader:3.2.5"))
.include(dependency("com.h2database:h2:2.2.224"));
}

@BuildCommand(summary = "Creates an executable JAR for the project")
public void bootjar() throws Exception {
new BootJarOperation()
.fromProject(this)
.execute();
}

public static void main(String[] args) {
new SampleHtmxSpringBuild().start(args);
}
}

0 comments on commit ff86766

Please sign in to comment.