Closed gilamarko closed 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
Unknown command-line option '--type'.`
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 }
Sorry just realized that winMenu = true winDirChooser = true winShortcut = true
winMenu = true winDirChooser = true winShortcut = true
are not needed. Closing this.
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