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

Execution failed for task ':jpackage' #23

Closed DenuxPlays closed 1 year ago

DenuxPlays commented 1 year ago

Error message: image

task:

tasks.jpackage {
    dependsOn(jar, shadowJar)

    input = "$buildDir/libs"
    destination = "$buildDir/dist"

    appName = "OpenFlowcharts"
    vendor = "denux.dev"

    mainJar = tasks.shadowJar.get().archiveFileName.get()
    mainClass = "dev.denux.flowcharts.LaunchHelper"

    javaOptions = listOf("-Dfile.encoding=UTF-8")

    windows {
        winConsole = true
    }
}

I have no idea what the issue is due to the error message being useless. How do I fix this? Btw. I am using gradle 8 maybe this is causing issues???

petr-panteleyev commented 1 year ago

Plugin works with gradle 8, at least I have 1 build that does. From what I see this is an error happened inside jpackage.exe. Try to launch the build with --info option and check if there is any diagnostics coming from jpackage.exe.

DenuxPlays commented 1 year ago

think I found the error: image I'll install it and give you an update asap

DenuxPlays commented 1 year ago

That fixed it. But I have a feature request: Can we support this type of versioning: image

petr-panteleyev commented 1 year ago

If this version format is rejected by jpackage.exe or installer tool then plugin cannot do anything about this.

DenuxPlays commented 1 year ago

Ah okay thank you :)