bld spring boot
1.0.1
要安装,请参考扩展文档。
从当前项目创建一个弹簧引导可执行的Java存档(JAR):
@ BuildCommand ( summary = "Creates an executable JAR for the project" )
public void bootjar () throws Exception {
new BootJarOperation ()
. fromProject ( this )
. execute ();
} ./bld compile bootjar从当前项目创建一个春季启动可执行的Web存档(WAR):
@ BuildCommand ( summary = "Creates an executable WAR for the project" )
public void bootwar () throws Exception {
new BootWarOperation ()
. fromProject ( this )
. execute ();
} ./bld compile bootwar不要忘记将弹簧启动加载器依赖性包括在您的项目中:
scope ( standalone )
. include ( dependency ( "org.springframeworkboot:spring-boot-loader:3.4.1" ));请检查所有可用配置选项的Bootjaroperation文档或Boot Waroperation文档。
您可能还希望查看BLD模板的Spring Boot Web应用程序示例。