Open nedtwigg opened 4 years ago
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 https://github.com/diffplug/durian-swt/pull/7/commits/496386ecebd023075b03a041d238af8d02a29469 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 https://github.com/diffplug/durian-swt/pull/7/commits/b3df3311d6ef3d6ce22756512a7e742227091e3c