aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZongle Wang <wangzongler@gmail.com>2024-04-07 02:40:31 +0800
committerGitHub <noreply@github.com>2024-04-06 20:40:31 +0200
commitd548c33658e364fa5d611b3ba713a64fb188528e (patch)
treed9b724c22fd9565d18ef7cead93c34eb3deb639a
parent3e67a28705106f257e372741495543c86963c8b4 (diff)
downloadktlint-d548c33658e364fa5d611b3ba713a64fb188528e.tar.gz
Migrate to develocity plugin (#2625)
https://docs.gradle.com/enterprise/gradle-plugin/legacy/#develocity_migration
-rw-r--r--settings.gradle.kts14
1 files changed, 7 insertions, 7 deletions
diff --git a/settings.gradle.kts b/settings.gradle.kts
index 5e2d0668..2e1b685f 100644
--- a/settings.gradle.kts
+++ b/settings.gradle.kts
@@ -15,17 +15,17 @@ dependencyResolutionManagement {
}
plugins {
- `gradle-enterprise`
+ id("com.gradle.develocity") version "3.17"
id("org.gradle.toolchains.foojay-resolver-convention") version "0.8.0"
}
-gradleEnterprise {
+develocity {
buildScan {
- termsOfServiceUrl = "https://gradle.com/terms-of-service"
- termsOfServiceAgree = "yes"
- if (System.getenv("CI") != null) {
- publishAlways()
- }
+ termsOfUseUrl = "https://gradle.com/terms-of-service"
+ termsOfUseAgree = "yes"
+ // TODO: workaround for https://github.com/gradle/gradle/issues/22879.
+ val isCI = providers.environmentVariable("CI").isPresent
+ publishing.onlyIf { isCI }
}
}