diffplug / diffplug/goomph

Project.getProperties() deprecated in Gradle 9 / removed in Gradle 10

Open Beginner friendly
#227 1 comment 0 reactions 0 assignees View on GitHub
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.