I am switching my android project to gradle 2.4. It’s an android project, but I don’t think this is really related to Android.
Since the migration to 2.4, there is a concurrency issue I can’t work around :
If I build my app with concurrency off (org.gradle.parallel=false in ~/gradle/gradle.properties) then the build goes well and is a success.
If I build my app with concurrency on, then I get PMD failing with this error :
Execution failed for task ‘:common-lib:pmd’. > java.lang.UnsupportedOperationException: The Language for Rule class net.sourceforge.pmd.lang.java.rule.unusedcode.UnusedPrivateFieldRule is immutable and cannot be changed.
I have tried to use pmd.toolVersion = ‘5.0.2’ (and I tried a lot of them) and it doesn’t work. I can see this error message during build :
Build tools null missing. Downloading…
Failed to notify ProjectEvaluationListener.afterEvaluate(), but primary configuration failure takes precedence.
Also, I use a pmd rule set in my project and it looks like it is related to the error I get :
<ruleset name="Custom ruleset"
This ruleset checks my code for bad stuff
Can someone help ?
I think this bug might soon affect the most important apps in Android as they are the ones using quality analysis usually.