rewrite icon indicating copy to clipboard operation
rewrite copied to clipboard

Migrate from Gradle Enterprise gradle plugin to Develocity plugin

Open timtebeek opened this issue 1 year ago • 2 comments

What problem are you trying to solve?

Starting with version 3.17, the plugin is available under the “Develocity” brand. Please see the Develocity Gradle Plugin User Manual for the latest documentation. Several core functionalities have been deprecated with the rebranding and will be removed in a future plugin version. Therefore, upgrading to the 3.17+ version of the plugin requires more than just updating the version number.

Start by updating the plugin’s version to 3.17 and changing the plugin ID to com.gradle.develocity. If you are using the common-custom-user-data-gradle-plugin, update the plugin’s version to 2.0. After running a simple task like ./gradlew help 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 taskInputFiles and publishAlways(). See Breaking API changes section for this and other examples. After these changes, your build script should look like the following:

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

timtebeek avatar Apr 15 '24 09:04 timtebeek

duplicate of #4134. @timtebeek looks like you had a network glitch

Bananeweizen avatar May 21 '24 17:05 Bananeweizen

ah no they are subtly different; one is for Maven and the other is for Gradle; Both need their own recipe for the migration. Thanks for checking though!

timtebeek avatar May 21 '24 18:05 timtebeek