Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Cross-project property lookups are incompatible with Gradle isolated projects

Open
#225 0 comments 0 reactions 0 assignees View on GitHub

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):

https://github.com/diffplug/goomph/blob/7e7e41cd68c100ff1e6efdc8010bf8e60b7500a7/src/main/java/com/diffplug/gradle/GoomphCacheLocations.java#L56

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from diffplug/goomph

All issues in diffplug/goomph

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.