Skip to content

Quick Start

Open an existing JVM application project using Gradle, or create a new one.

Creating a new project
gradle init
build.gradle.kts
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"
}

The plugin adds its tasks to the Application group:

Listing the tasks
gradlew.bat 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