bld Extension to help create Spring Boot web applications https://github.com/rife2/bld-spring-boot
Find a file
2024-01-19 12:42:18 -08:00
.github/workflows Fixed workflow branch name 2023-10-30 13:34:31 -07:00
.idea Added WEB-INF/lib-provided support 2024-01-07 00:56:10 -08:00
.vscode Initial commit 2023-10-25 20:36:49 -07:00
config Added PMD config 2023-10-27 03:12:24 -07:00
examples Bumped examples to Spring Boot 3.2.2 2024-01-19 12:34:55 -08:00
lib/bld Added WEB-INF/lib-provided support 2024-01-07 00:56:10 -08:00
src Added WEB-INF/lib-provided support 2024-01-07 00:56:10 -08:00
.gitignore Fixed publish repository locations 2023-10-30 13:29:46 -07:00
bld Initial commit 2023-10-25 20:36:49 -07:00
bld.bat Initial commit 2023-10-25 20:36:49 -07:00
LICENSE.txt Initial commit 2023-10-25 20:36:49 -07:00
README.md Bumped Spring Boot dependency example to 3.2.2 2024-01-19 12:42:18 -08:00

bld Extension to Help Create Spring Boot Web Applications

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 = "Creates an executable WAR for the project")
public void bootwar() throws Exception {
    new BootWarOperation()
            .fromProject(this)
            .execute();
}
./bld compile bootwar

Don't forget to include the Spring Boot Loader dependency to your project:

scope(standalone)
    .include(dependency("org.springframeworkboot:spring-boot-loader:3.2.2"));

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

You may also want to have a look at the Spring Boot Web Application Example for bld template.