Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate from Gradle Enterprise Maven extension to Develocity plugin #4134

Open
timtebeek opened this issue Apr 15, 2024 · 0 comments
Open

Migrate from Gradle Enterprise Maven extension to Develocity plugin #4134

timtebeek opened this issue Apr 15, 2024 · 0 comments
Labels
recipe Requested Recipe

Comments

@timtebeek
Copy link
Contributor

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:

@timtebeek timtebeek added the recipe Requested Recipe label Apr 15, 2024
@timtebeek timtebeek changed the title Migrate from Gradle Enterprise Maven plugin to Develocity plugin Migrate from Gradle Enterprise Maven extension to Develocity plugin May 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
recipe Requested Recipe
Projects
Status: Recipes Wanted
Development

No branches or pull requests

1 participant