11pluginManagement {
22 plugins {
33 id(" com.github.johnrengelman.shadow" ) version " 8.1.1"
4- id(" com.gradle.develocity" ) version " 3.18.2"
54 id(" io.github.gradle-nexus.publish-plugin" ) version " 2.0.0"
5+ id(" com.gradle.develocity" ) version " 3.18.2"
66 }
77}
88
@@ -17,42 +17,11 @@ dependencyResolutionManagement {
1717 }
1818}
1919
20- val gradleEnterpriseServer = " https://ge.opentelemetry.io"
21- val isCI = System .getenv(" CI" ) != null
22- val develocityAccessKey = System .getenv(" GRADLE_ENTERPRISE_ACCESS_KEY" ) ? : " "
23-
24- // if GE access key is not given and we are in CI, then we publish to scans.gradle.com
25- val useScansGradleCom = isCI && develocityAccessKey.isEmpty()
26-
27- if (useScansGradleCom) {
28- develocity {
29- buildScan {
30- termsOfUseUrl.set(" https://gradle.com/terms-of-service" )
31- termsOfUseAgree.set(" yes" )
32- uploadInBackground.set(! isCI)
33- publishing.onlyIf { true }
34-
35- capture {
36- fileFingerprints.set(true )
37- }
38- }
39- }
40- } else {
41- develocity {
42- server = gradleEnterpriseServer
43- buildScan {
44- uploadInBackground.set(! isCI)
45-
46- publishing.onlyIf {
47- it.isAuthenticated
48- }
49- capture {
50- fileFingerprints.set(true )
51- }
52-
53- gradle.startParameter.projectProperties[" testJavaVersion" ]?.let { tag(it) }
54- gradle.startParameter.projectProperties[" testJavaVM" ]?.let { tag(it) }
55- }
20+ develocity {
21+ buildScan {
22+ publishing.onlyIf { System .getenv(" CI" ) != null }
23+ termsOfUseUrl.set(" https://gradle.com/help/legal-terms-of-use" )
24+ termsOfUseAgree.set(" yes" )
5625 }
5726}
5827
0 commit comments