Skip to content

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

Description

@hazendaz

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

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:

Object value = project.findProperty("goomph_" + field.getName());

Could this be addressed in a future Goomph release?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions