Quick Start
Get a project
Section titled “Get a project”Open an existing JVM application project using Gradle, or create a new one.
gradle initgradle initAdd the plugin
Section titled “Add the plugin”plugins { application id("de.infolektuell.jpackage") version "x.y.z"}
repositories { mavenCentral()}
java { toolchain { languageVersion = JavaLanguageVersion.of(25) }}
application { applicationName = "jTunes" mainClass = "org.example.App"}plugins { id application id 'de.infolektuell.jpackage' version 'x.y.z'}
repositories { mavenCentral()}
java { toolchain { languageVersion = JavaLanguageVersion.of 25 }}
application { applicationName = 'jTunes' mainClass = 'org.example.App'}Inspect the tasks
Section titled “Inspect the tasks”The plugin adds its tasks to the Application group:
gradlew.bat tasks./gradlew tasks- jdeps
- jlink
- appImage
- appInstaller
All tasks use the build/jpackage directory for its outputs
DirectoryjTunes
Directorybuild
- …
Directoryjpackage
Directoryimage/ the application image
- …
Directoryinput/ non-modular files to be included as app content
- …
Directoryinstall/ the app installer
- …
Directoryjdeps/
- jdeps-results.txt the app’s module dependencies found by Jdeps
Directoryruntime/ the custom runtime image
- …
- …
- build.gradle.kts
- settings.gradle.kts