Project.getProperties() deprecated in Gradle 9 / removed in Gradle 10
- Dominant language
- Java
- Stars
- 137
- Forks
- 33
- PR merge metrics
- No merged PRs in 30d
Description
### `Project.getProperties()` deprecated in Gradle 9 / removed in Gradle 10
With Goomph 4.4.1 and Gradle 9, the following deprecation warning is reported:
> The Project.getProperties method has been deprecated. This will fail with an error in Gradle 10.
The problem report points to `com.diffplug.eclipse.mavencentral`, and the call originates from `GoomphCacheLocations.initFromProject()`:
```java
Object value = project.getProperties().get("goomph_" + field.getName());
```
This appears to be a straightforward Gradle 10 compatibility issue. `Project.getProperties()` can be replaced with `Project.findProperty()` here while preserving the existing lookup behavior:
```java
Object value = project.findProperty("goomph_" + field.getName());
```
Could this be addressed in a future Goomph release?
Contributor guide
Research direction
Start at GoomphCacheLocations.initFromProject(), where the issue identifies the deprecated Project.getProperties() call. Check the surrounding property lookup and verify that the Gradle compatibility warning is resolved while the existing goomph_ field lookup behavior remains unchanged.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Activity status
- Active
- Clarity
- Clearly specified
- Newbie friendliness
- 88/100