Skip to content

Commit 268b6f6

Browse files
authored
Migrate to develocity plugin and remove unused build scan config (#2084)
2 parents 13fbf78 + 0513051 commit 268b6f6

File tree

2 files changed

+10
-46
lines changed

2 files changed

+10
-46
lines changed

gradle/build-scans.gradle

-40
This file was deleted.

settings.gradle

+10-6
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ plugins {
1919
id 'com.adarshr.test-logger' version '4.0.0' apply false
2020
// https://github.com/davidburstrom/version-compatibility-gradle-plugin/tags
2121
id 'io.github.davidburstrom.version-compatibility' version '0.5.0' apply false
22-
// https://plugins.gradle.org/plugin/com.gradle.enterprise
23-
id 'com.gradle.enterprise' version '3.16'
22+
// https://plugins.gradle.org/plugin/com.gradle.develocity
23+
id 'com.gradle.develocity' version '3.17'
2424
// https://github.com/equodev/equo-ide/blob/main/plugin-gradle/CHANGELOG.md
2525
id 'dev.equo.ide' version '1.7.5' apply false
2626
}
@@ -59,11 +59,15 @@ if (System.env['CI'] != null) {
5959
}
6060
}
6161

62-
gradleEnterprise {
62+
def isCI = providers.environmentVariable('CI').present
63+
64+
develocity {
6365
buildScan {
64-
termsOfServiceUrl = "https://gradle.com/terms-of-service"
65-
termsOfServiceAgree = "yes"
66-
publishAlwaysIf(providers.environmentVariable('CI').present)
66+
termsOfUseUrl = "https://gradle.com/terms-of-service"
67+
termsOfUseAgree = "yes"
68+
publishing {
69+
onlyIf { isCI }
70+
}
6771
}
6872
}
6973

0 commit comments

Comments
 (0)