Affects Version/s: 0.9.2
Fix Version/s: None
When building a project that uses Datanucleus for persistence, classes are enhanced during 'compileJava'. compileJava returns too fast with status completed, before the enhancement of classes is complete.
Subsequent tasks, such as jar, will therefore use the non-enhanced classes.
See http://gradle.1045684.n5.nabble.com/compileJava-done-before-Datanucleus-has-enhanced-classes-tc3372540.html for the original thread in the Gradle users mailing list.
I've provided a test:
- Run 'gradle clean test' > test fails, takes a while before you return to the command line
- Then run 'gradle test -x compileJava' > test succeeds