bld spring boot
1.0.1
Zur Installation finden Sie in der Erweiterungsdokumentation.
So erstellen Sie ein ausführbares Java -Archiv (JAR) aus dem aktuellen Projekt:
@ BuildCommand ( summary = "Creates an executable JAR for the project" )
public void bootjar () throws Exception {
new BootJarOperation ()
. fromProject ( this )
. execute ();
} ./bld compile bootjarSo erstellen Sie aus dem aktuellen Projekt ein ausführbares Webarchiv (aus dem Spring Boot Executable -Webarchiv):
@ BuildCommand ( summary = "Creates an executable WAR for the project" )
public void bootwar () throws Exception {
new BootWarOperation ()
. fromProject ( this )
. execute ();
} ./bld compile bootwarVergessen Sie nicht, die Abhängigkeit von Spring Bootloader in Ihr Projekt aufzunehmen:
scope ( standalone )
. include ( dependency ( "org.springframeworkboot:spring-boot-loader:3.4.1" ));Bitte überprüfen Sie die Dokumentation oder Bootwaroperation -Dokumentation für die Bootjaroperationsdokumentation für alle verfügbaren Konfigurationsoptionen.
Möglicherweise möchten Sie sich auch das Beispiel für die Spring -Boot -Webanwendung für die Bld -Vorlage ansehen.