Java optional libraries
The @fabr-build/java plugin keeps some target types in optional libraries: .fabr files a
project reads only where it includes them, after plugin @fabr-build/java;. Each section below
is one library, with the line that includes it. Everything else the plugin provides is in
Java targets and configuration.
This page is generated from fabr list-all, so it never drifts from the code.
lib/spring-boot.fabr
Section titled “lib/spring-boot.fabr”include @fabr-build/java:lib/spring-boot.fabr;Targets
Section titled “Targets”spring_boot_jar
Section titled “spring_boot_jar”Operations: build
targetdef spring_boot_jar { app = REQUIRED PACKAGES; main_class = REQUIRED STRING; loader = REQUIRED PACKAGES; launcher = STRING default org.springframework.boot.loader.launch.JarLauncher;}A Spring Boot executable jar: the application’s jar and the jars of
everything it requires under BOOT-INF/lib, and the Spring Boot loader’s
classes at the root, started by java -jar.
| Property | Type | Required | Default | Description |
|---|---|---|---|---|
app |
REQUIRED PACKAGES | yes | The application: a jar_package, with everything it requires. |
|
main_class |
REQUIRED STRING | yes | The class the application starts in, which the loader starts. | |
loader |
REQUIRED PACKAGES | yes | The Spring Boot loader: spring-boot-loader, of the application’s Spring Boot release. |
|
launcher |
STRING | org.springframework.boot.loader.launch.JarLauncher |
The loader’s class that starts the jar: Spring Boot 3.2 and later’s, by default. Before 3.2 it is org.springframework.boot.loader.JarLauncher. |