Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support jlinkZip jpackage #237

Closed
koppor opened this issue Sep 19, 2023 · 1 comment
Closed

Support jlinkZip jpackage #237

koppor opened this issue Sep 19, 2023 · 1 comment

Comments

@koppor
Copy link
Contributor

koppor commented Sep 19, 2023

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 airsquared added Pending Release This issue has been fixed in master and is awaiting a release and removed Pending Release This issue has been fixed in master and is awaiting a release labels Sep 24, 2023
@airsquared
Copy link
Collaborator

Fixed in v3.0.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants