GitHunt
BE

beryx/badass-jlink-plugin

Create a custom runtime image of your modular application

PRs Welcome
License
Build Status

NOTE: Looking for co-maintainers - see this issue.

Using this Gradle plugin you can create a custom runtime image of your modular application with minimal effort,
even if it depends on automatic modules.
The plugin also lets you create an application installer with the jpackage tool introduced in Java 14
(see fxgl-sliding-puzzle for a usage example).

๐Ÿ’ก For non-modular applications use the Badass-Runtime plugin.

Badass-JLink exposes an extension with the name jlink to let you configure various
aspects of its operation.
A simple example configuration is shown below:

jlink {
    options = ['--strip-debug', '--compress', '2', '--no-header-files', '--no-man-pages']
    launcher{
        name = 'hello'
        jvmArgs = ['-Dlog4j.configurationFile=./log4j2.xml']
    }
}

This is a complex plugin. Please read the documentation before using it.

The following projects illustrate how to use this plugin to create custom runtime images:

See the list of all releases if you use an older version of this plugin.

Languages

Groovy96.3%Java3.1%Shell0.5%HTML0.1%
Apache License 2.0
Created June 17, 2018
Updated March 8, 2026
beryx/badass-jlink-plugin | GitHunt