chore(deps): update plugin com.gradle.enterprise to com.gradle.develocity (#612)

This commit is contained in:
Nik Clayton 2024-04-10 20:03:06 +02:00 committed by GitHub
parent 5d95425706
commit add5f214c9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 7 additions and 8 deletions

View File

@ -30,18 +30,17 @@ dependencyResolutionManagement {
}
plugins {
id("com.gradle.enterprise") version "3.16.2"
id("com.gradle.develocity") version "3.17"
}
val isCiBuild = !System.getenv("CI").isNullOrBlank()
gradleEnterprise {
develocity {
buildScan {
termsOfServiceUrl = "https://gradle.com/terms-of-service"
termsOfServiceAgree = "yes"
isUploadInBackground = !isCiBuild
termsOfUseUrl = "https://gradle.com/help/legal-terms-of-use"
termsOfUseAgree = "yes"
val isCiBuild = providers.environmentVariable("CI").isPresent
uploadInBackground = !isCiBuild
tag(if (isCiBuild) "CI" else "Local")
publishAlwaysIf(isCiBuild)
publishing.onlyIf { isCiBuild }
}
}