Skip to content

Commit

Permalink
[Chore] Upgrade to the Develocity plugin to remove build warnings (#4045
Browse files Browse the repository at this point in the history
)

## Summary

`com.gradle.enterprise` plugin has been deprecated in favor of
`com.gradle.develocity`. The use of the deprecated plugin ID and APIs
results in build time warnings like the following:

```
WARNING: The following functionality has been deprecated and will be removed in the next major release of the Develocity Gradle plugin. For assistance with migration, see https://gradle.com/help/gradle-plugin-develocity-migration.
- The deprecated "gradleEnterprise.buildScan.termsOfServiceUrl" API has been replaced by "develocity.buildScan.termsOfUseUrl"
- The deprecated "gradleEnterprise.buildScan.termsOfServiceAgree" API has been replaced by "develocity.buildScan.termsOfUseAgree"
- The "com.gradle.enterprise" plugin has been replaced by "com.gradle.develocity"
```

This PR updates the plugin ID and replaces the deprecated usage.
  • Loading branch information
pshevche committed Jun 2, 2024
1 parent 8a1ebac commit cb0a4a9
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -100,13 +100,14 @@ include(
)

plugins {
id("com.gradle.enterprise") version "3.17.2"
id("com.gradle.develocity") version "3.17.4"
}

gradleEnterprise {
develocity {
buildScan {
termsOfServiceUrl = "https://gradle.com/terms-of-service"
termsOfServiceAgree = "yes"
termsOfUseUrl = "https://gradle.com/help/legal-terms-of-use"
termsOfUseAgree = "yes"
publishing.onlyIf { false }
}
}

Expand Down

0 comments on commit cb0a4a9

Please sign in to comment.