petr-panteleyev / jpackage-gradle-plugin

JPackage Gradle Plugin
https://codeberg.org/petr-panteleyev/jpackage-gradle-plugin
BSD 2-Clause "Simplified" License
97 stars 13 forks source link

Running ./gradlew jpackage --type app-image fails #21

Closed gilamarko closed 1 year ago

gilamarko commented 1 year ago

I do not know if I have configured something wrong but when running the command "./gradlew jpackage --type app-image" I get

I want this so I can run it natively. Running the ./gradlew jpackage works fine.

I' am running this with Gradle 7.4.2 and Java 17.0.6

Sample jpackage task


    appName = project.name
    appVersion = project.version
    vendor = "Marko G."
    copyright = "Copyright © 2023 Marko G."
    runtimeImage = System.getProperty("java.home")
    module = "converter/${MAIN_CLASS}"
    modulePaths = ["$buildDir/jmods"]
    destination = "$buildDir/distributions"
    javaOptions = ["-Dfile.encoding=UTF-8", "--enable-preview"]

    windows {
        icon = "src/main/resources/images/appImage.ico"
        winMenu = true
        winDirChooser = true
        winShortcut = true
    }

    dependsOn build, copyJar
}
gilamarko commented 1 year ago

Sorry just realized that
winMenu = true winDirChooser = true winShortcut = true

are not needed. Closing this.