Skip to content

Commit

Permalink
Disable Develocity integration by default (#993)
Browse files Browse the repository at this point in the history
Configuring Develocity build scan to publish additional details breaks Gradle project isolation.

This change introduces a new property, `com.gradleup.shadow.enableDevelocityIntegration`, which defaults to false. However, it allows users to set it to true to continue using Develocity integration.

---------

Co-authored-by: Goooler <[email protected]>
  • Loading branch information
liutikas and Goooler authored Oct 2, 2024
1 parent 196fd6c commit 1888cb6
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 6 deletions.
4 changes: 4 additions & 0 deletions src/docs/changes/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@

## [Unreleased]

**Changed**

- Disable Develocity integration by default. ([#993](https://github.com/GradleUp/shadow/pull/993))


## [v8.3.2]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,17 @@ class ShadowPlugin implements Plugin<Project> {
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)
}
}
}
}
Expand Down

0 comments on commit 1888cb6

Please sign in to comment.