Skip to content
Usage example of the Badass JLink Plugin
Java
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
gradle/wrapper
src/main
.gitattributes
.gitignore
.travis.yml
LICENSE
README.md
build.gradle
gradlew
gradlew.bat
settings.gradle

README.md

PRs Welcome License Build Status

Badass JLink Plugin Example

A small application that shows how to use the Badass JLink Plugin.

The plugin is configured in build.gradle as follows:

plugins {
    id 'org.beryx.jlink' version '2.4.1'
    ...
}

jlink {
    mergedModule {
        requires 'java.naming'
        requires 'java.xml'
    }
    launcher{
        name = 'hello'
        jvmArgs = ['-Dlogback.configurationFile=./logback.xml']
    }
}

Usage

Running with gradle:

./gradlew run

The following text should appear on your screen:

LOG: Hello, modular java!

Creating and executing a custom runtime image:

./gradlew jlink
cd build/image/bin
./hello

The following text should appear on your screen:

LOG: Hello, modular java!
You can’t perform that action at this time.