Cross-project property lookups are incompatible with Gradle isolated projects
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 55/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Quiet
- Tech stack
- java
- Domain
- build-system
Research direction
Start with src/main/java/com/diffplug/gradle/GoomphCacheLocations.java at line 56 in GoomphCacheLocations.initFromProject(Project), then reproduce the failure with Gradle isolated projects enabled. Read the linked Gradle issue and its migration guidance, and verify the plugin no longer triggers the cross-project dynamic property lookup error.
Written by the indexing model from the issue text.
Description
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):
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."
- Dominant language
- Java
- Stars
- 137
- Forks
- 33
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from diffplug/goomph
-
Difficulty 1/5 Under an hour Newbie friendliness 88/100
-
Difficulty 3/5 1-2 days Newbie friendliness 52/100
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
-
enhancement
Difficulty 4/5 3-5 days Newbie friendliness 32/100
-
enhancement
Difficulty 4/5 3-5 days Newbie friendliness 35/100
Similar issues
-
certification
Difficulty 1/5 Under an hour Newbie friendliness 80/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
[BUG] ECR GetAuthorizationToken returns a proxyEndpoint for the default region, not the request's Openbug ecr
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Needs: Triage Type: Feature request
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
AntennaPod/AntennaPod#8794 ·
-
agentic-workflows
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
github/copilot-sdk#2760 ·