bld Extension to help create Spring Boot web applications https://github.com/rife2/bld-spring-boot
Find a file
2025-03-25 21:18:38 -07:00
.github/workflows Add OS matrix for Ubuntu, Windows and macOS 2025-03-25 21:18:38 -07:00
.idea Bump bld to version 2.2.1 2025-02-24 23:07:16 -08:00
.vscode Bump bld to version 2.2.1 2025-02-24 23:07:16 -08:00
config Bumped PMD extensions to version 1.1.7 2024-10-28 10:12:04 -07:00
examples Add OS matrix for Ubuntu, Windows and macOS 2025-03-25 21:18:38 -07:00
lib/bld Bump PMD extension to version 1.2.1 2025-03-18 13:12:18 -07:00
src Bump to Spring Boot 3.4.4 2025-03-20 21:05:22 -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 Bump Spring Boot Loader example to version 3.4.4 2025-03-20 21:07:56 -07:00

bld Extension to Help Create Spring Boot Web Applications

License Java bld Release Snapshot GitHub CI

To install the latest version, add the following to the lib/bld/bld-wrapper.properties file:

bld.extension-spring-boot=com.uwyn.rife2:bld-spring-boot

For more information, please refer to the extensions documentation.

Create an Executable JAR

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

Create an Executable WAR

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

Required Dependency

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

scope(standalone)
    .include(dependency("org.springframework.boot:spring-boot-loader:3.4.4"));

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.