beryx / badass-jlink-plugin

Create a custom runtime image of your modular application
https://badass-jlink-plugin.beryx.org
Apache License 2.0
386 stars 27 forks source link

Support jlinkZip jpackage #237

Closed koppor closed 1 year ago

koppor commented 1 year ago

I was trying to execute ./gradlew jpackage jlinkZip, but gradle massively complained:

* What went wrong:
A problem was found with the configuration of task ':jpackageImage' (type 'JPackageImageTask').
  - Gradle detected a problem with the following location: '/home/runner/work/jabref/jabref/build/image'.

    Reason: Task ':jlinkZip' uses this output of task ':jpackageImage' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed.

    Possible solutions:
      1. Declare task ':jpackageImage' as an input of ':jlinkZip'.
      2. Declare an explicit dependency on ':jpackageImage' from ':jlinkZip' using Task#dependsOn.
      3. Declare an explicit dependency on ':jpackageImage' from ':jlinkZip' using Task#mustRunAfter.

I solved it with

jlinkZip.dependsOn jpackageImage

in my build.gradle.

airsquared commented 1 year ago

Fixed in v3.0.0.