bld-spring-boot/README.md
2023-10-30 12:57:06 -07:00

2.1 KiB

bld Extension for Spring Boot

License Java bld Release Snapshot GitHub CI

To install, please refer to the extensions documentation.

To create a Spring Boot executable Java Archive (JAR) from the current project:

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

To create a Spring Boot executable Web Archive (WAR) from the current project:

@BuildCommand(summary = "Create an executable WAR for the project")
public void bootwar() throws Exception {
    new BootWarOperation()
            .fromProject(this)
            .execute();
}
./bld compile bootwar

Please check the BootJarOperation documentation or BootWarOperation documentation for all available configuration options.