Gradle isolated projects restrict how one (sub)project can access mutable state in another (sub)project. Version 4.4.1 of the com.diffplug.eclipse.mavencentral plugin violates these restrictions. Attempting to use this plugin with isolated projects enabled results in errors like the following:
- Plugin 'com.diffplug.eclipse.mavencentral': Project ':xxx:yyy:zzz' cannot dynamically look up a property in the parent project ':xxx:yyy'
Using a stack trace for additional context reveals that the problematic code is at GoomphCacheLocations.java:56 in com.diffplug.gradle. GoomphCacheLocations. initFromProject(Project):
|
Object value = project.getProperties().get("goomph_" + field.getName()); |
See also related discussion in gradle/gradle#36998. Note especially this comment near the very end that "We are getting rid of the Project.getProperties() method."
Gradle isolated projects restrict how one (sub)project can access mutable state in another (sub)project. Version 4.4.1 of the
com.diffplug.eclipse.mavencentralplugin violates these restrictions. Attempting to use this plugin with isolated projects enabled results in errors like the following:Using a stack trace for additional context reveals that the problematic code is at
GoomphCacheLocations.java:56incom.diffplug.gradle. GoomphCacheLocations. initFromProject(Project):goomph/src/main/java/com/diffplug/gradle/GoomphCacheLocations.java
Line 56 in 7e7e41c
See also related discussion in gradle/gradle#36998. Note especially this comment near the very end that "We are getting rid of the
Project.getProperties()method."