This Gradle plugin automates creation of custom runtime images using the Java jlink tool, producing small, self-contained distributions tailored to your application’s module graph. It analyzes your app’s modules (and dependencies) to include only the JDK modules you actually need, which substantially reduces footprint versus shipping a full JRE. The plugin generates launchers, start scripts, and archive layouts ready for distribution or Docker layering. It offers rich configuration for JVM options, system properties, service providers, and add-modules/add-reads tweaks to handle both modular and “automatic module” dependencies. For JavaFX and other common stacks, it provides conveniences that smooth over typical jlink hurdles and platform differences. As a result, you get predictable, fast-starting binaries that are easy to ship across environments without requiring a preinstalled Java runtime.
Features
- Builds custom runtime images using Java’s jlink tool
- Supports modular applications and automatic modules
- Integrates with jpackage for native installer creation
- Minimal configuration required via Gradle plugin
- Tailored for Java 9+ with project modularization
- Actively maintained; latest version 3.1.3