You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In diffplug/durian-swt@496386e I used java-library in a multi-module project, and I declared an api dependency on another module within the project. I then saw intermittent errors like this:
> Task :durian-swt:jar FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':durian-swt:jar'.
> A Jar can only accept a file or directory that exists: /home/travis/build/diffplug/durian-swt/durian-swt.os/build/libs/durian-swt.os-3.3.0.jar
I'm experiencing the same error after switching from biz.aQute.bnd.builder to the bndmanifest plugin.
The problem is that the java-library plugin has a dependency on the class-folder of dependent modules instead of the jar (as it used to be in Gradle before).
Thus, the jar-task of a module may be executed before any of the dependent JARs have been built.
Workaround: You can force Gradle to use the "old" behaviour of depending on JARs by adding the following switch -Dorg.gradle.java.compile-classpath-packaging=true
It would be great though if the plugin can be adjusted to the new behaviour.
In diffplug/durian-swt@496386e I used
java-library
in a multi-module project, and I declared anapi
dependency on another module within the project. I then saw intermittent errors like this:The workaround is diffplug/durian-swt@b3df331
The text was updated successfully, but these errors were encountered: