Skip to content

bld Extension to help create Spring Boot web applications

License

Notifications You must be signed in to change notification settings

rife2/bld-spring-boot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

89 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.