diff --git a/src/docs/changes/README.md b/src/docs/changes/README.md index 2bb2152c9..b02a01a0c 100644 --- a/src/docs/changes/README.md +++ b/src/docs/changes/README.md @@ -3,6 +3,10 @@ ## [Unreleased] +**Changed** + +- Disable Develocity integration by default. ([#993](https://github.com/GradleUp/shadow/pull/993)) + ## [v8.3.2] diff --git a/src/main/groovy/com/github/jengelman/gradle/plugins/shadow/ShadowPlugin.groovy b/src/main/groovy/com/github/jengelman/gradle/plugins/shadow/ShadowPlugin.groovy index 4b2262f97..3e9bbbc37 100644 --- a/src/main/groovy/com/github/jengelman/gradle/plugins/shadow/ShadowPlugin.groovy +++ b/src/main/groovy/com/github/jengelman/gradle/plugins/shadow/ShadowPlugin.groovy @@ -21,12 +21,17 @@ class ShadowPlugin implements Plugin { plugins.apply(ShadowApplicationPlugin) } - // Legacy build scan support for Gradle Enterprise, users should migrate to develocity plugin. - rootProject.plugins.withId('com.gradle.enterprise') { - configureBuildScan(rootProject) - } - rootProject.plugins.withId('com.gradle.develocity') { - configureBuildScan(rootProject) + boolean enableDevelocityIntegration = providers.gradleProperty( + "com.gradleup.shadow.enableDevelocityIntegration" + ).map { it.toBoolean() }.getOrElse(false) + if (enableDevelocityIntegration) { + // Legacy build scan support for Gradle Enterprise, users should migrate to develocity plugin. + rootProject.plugins.withId('com.gradle.enterprise') { + configureBuildScan(rootProject) + } + rootProject.plugins.withId('com.gradle.develocity') { + configureBuildScan(rootProject) + } } } }