openrewrite / openrewrite/rewrite

Migrate from Gradle Enterprise Maven extension to Develocity plugin

Open
#4,134 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

recipe
Dominant language
Java
Stars
3.7k
Forks
571
Avg merge
13h 12m
Merged PRs (30d)
261

Description

What problem are you trying to solve?

https://docs.gradle.com/enterprise/maven-extension/legacy/#develocity_migration

Starting with version 1.21, the extension is available under the “Develocity” brand. Please see the Develocity Maven Extension User Manual for the current documentation. Several APIs, system properties and configuration files have been deprecated with the rebranding and will be removed in the next major version. Therefore, please consider migrating to the new APIs where applicable to minimize the amount of necessary changes when updating to the next major version.

Start by updating the extension’s version to 1.21 and changing the artifact ID to develocity-maven-extension, then rename gradle-enterprise.xml to develocity.xml and update your .gitignore accordingly. If you are using the common-custom-user-data-maven-extension, update the extension’s version to 2.0 After running a goal like ./mvnw test you will be informed about the usage of the deprecated APIs:

Most of the violations can be fixed by replacing references of gradleEnterprise with develocity. Some APIs have been replaced by more descriptive and idiomatic alternatives. In this example, those APIs are goalInputFiles and publish. See Breaking API changes section for this and other examples. After these changes, your extensions.xml and develocity.xml should look like the following:

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.

Research direction

Locate the Maven extension configuration, gradle-enterprise.xml, develocity.xml, .gitignore, and extensions.xml mentioned in the issue. Start by updating the extension and common-custom-user-data-maven-extension versions, then run ./mvnw test to identify deprecated APIs. Done means the configuration uses the Develocity names and no deprecated API usage remains.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
build-system
Issue type
Refactor
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.