bld spring boot
1.0.1
Pour installer, veuillez vous référer à la documentation d'extensions.
Pour créer une archive Java (JAR) exécutable de Spring Boot à partir du projet actuel:
@ BuildCommand ( summary = "Creates an executable JAR for the project" )
public void bootjar () throws Exception {
new BootJarOperation ()
. fromProject ( this )
. execute ();
} ./bld compile bootjarPour créer une archive Web exécutable Spring Boot (WAR) à partir du projet actuel:
@ BuildCommand ( summary = "Creates an executable WAR for the project" )
public void bootwar () throws Exception {
new BootWarOperation ()
. fromProject ( this )
. execute ();
} ./bld compile bootwarN'oubliez pas d'inclure la dépendance du chargeur de démarrage Spring à votre projet:
scope ( standalone )
. include ( dependency ( "org.springframeworkboot:spring-boot-loader:3.4.1" ));Veuillez vérifier la documentation de bootJarOperation ou la documentation de bootWaroperation pour toutes les options de configuration disponibles.
Vous pouvez également jeter un œil à l'exemple d'application Web Spring Boot pour le modèle BLD.