bld Extension to help create Spring Boot web applications https://github.com/rife2/bld-spring-boot
Find a file
Erik C. Thauvin e711e405aa
Updated dependencies
Bumped Spring Boot to version 5.3.4
Bumped PMD extension to version 1.1.6
Bumped JUnit to version 5.11.3
Bumped JDK to version 23 (GitHub CI)
2024-10-24 11:17:51 -07:00
.github/workflows Updated dependencies 2024-10-24 11:17:51 -07:00
.idea Bumped bld to version 2.1.0 2024-08-30 18:42:55 -07:00
.vscode Bumped bld to version 2.1.0 2024-08-30 18:42:55 -07:00
config Version 0.9.3 2024-04-18 13:16:13 -07:00
examples Updated dependencies 2024-10-24 11:17:51 -07:00
lib/bld Updated dependencies 2024-10-24 11:17:51 -07:00
src Updated dependencies 2024-10-24 11:17:51 -07: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 Updated dependencies 2024-10-24 11:17:51 -07: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.3.5"));

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.