@@ -3,45 +3,15 @@ pluginManagement {
33 id(" com.diffplug.spotless" ) version " 6.25.0"
44 id(" com.github.johnrengelman.shadow" ) version " 8.1.1"
55 id(" com.google.protobuf" ) version " 0.9.4"
6- id(" com.gradle.develocity" ) version " 3.18.2"
76 id(" org.gradle.toolchains.foojay-resolver-convention" ) version " 0.8.0"
87 id(" com.google.cloud.tools.jib" ) version " 3.4.4"
98 }
109}
1110
1211plugins {
13- id(" com.gradle.develocity" )
1412 id(" org.gradle.toolchains.foojay-resolver-convention" )
1513}
1614
17- val gradleEnterpriseServer = " https://ge.opentelemetry.io"
18- val isCI = System .getenv(" CI" ) != null
19- val geAccessKey = System .getenv(" GRADLE_ENTERPRISE_ACCESS_KEY" ) ? : " "
20-
21- // if the GE access key is not given, and we are in CI, then we publish to scans.gradle.com
22- val useScansGradleCom = isCI && geAccessKey.isEmpty()
23-
24- develocity {
25- if (! useScansGradleCom) {
26- server = gradleEnterpriseServer
27- }
28- buildScan {
29- uploadInBackground = ! isCI
30-
31- if (useScansGradleCom) {
32- termsOfUseUrl = " https://gradle.com/terms-of-service"
33- termsOfUseAgree = " yes"
34- publishing.onlyIf {true }
35- } else {
36- publishing.onlyIf { geAccessKey.isNotEmpty() }
37- }
38-
39- capture {
40- fileFingerprints.set(true )
41- }
42- }
43- }
44-
4515rootProject.name = " opentelemetry-java-examples"
4616include(
4717 " :opentelemetry-examples-autoconfigure" ,
0 commit comments