-
Notifications
You must be signed in to change notification settings - Fork 125
/
settings.gradle.kts
79 lines (71 loc) · 2.47 KB
/
settings.gradle.kts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
pluginManagement {
plugins {
id("com.diffplug.spotless") version "6.25.0"
id("com.github.johnrengelman.shadow") version "8.1.1"
id("com.google.protobuf") version "0.9.4"
id("com.gradle.develocity") version "3.18.1"
id("org.gradle.toolchains.foojay-resolver-convention") version "0.8.0"
id("com.google.cloud.tools.jib") version "3.4.4"
}
}
plugins {
id("com.gradle.develocity")
id("org.gradle.toolchains.foojay-resolver-convention")
}
val gradleEnterpriseServer = "https://ge.opentelemetry.io"
val isCI = System.getenv("CI") != null
val geAccessKey = System.getenv("GRADLE_ENTERPRISE_ACCESS_KEY") ?: ""
// if the GE access key is not given, and we are in CI, then we publish to scans.gradle.com
val useScansGradleCom = isCI && geAccessKey.isEmpty()
develocity {
if (!useScansGradleCom) {
server = gradleEnterpriseServer
}
buildScan {
uploadInBackground = !isCI
if (useScansGradleCom) {
termsOfUseUrl = "https://gradle.com/terms-of-service"
termsOfUseAgree = "yes"
publishing.onlyIf {true }
} else {
publishing.onlyIf { geAccessKey.isNotEmpty() }
}
capture {
fileFingerprints.set(true)
}
}
}
rootProject.name = "opentelemetry-java-examples"
include(
":opentelemetry-examples-autoconfigure",
":opentelemetry-examples-declarative-configuration",
":opentelemetry-examples-http",
":opentelemetry-examples-jaeger",
":opentelemetry-examples-javaagent",
":opentelemetry-examples-log-appender",
":opentelemetry-examples-logging",
":opentelemetry-examples-manual-tracing",
":opentelemetry-examples-metrics",
":opentelemetry-examples-micrometer-shim",
":opentelemetry-examples-otlp",
":opentelemetry-examples-prometheus",
":opentelemetry-examples-sdk-usage",
":opentelemetry-examples-telemetry-testing",
":opentelemetry-examples-zipkin",
":opentelemetry-examples-spring-native",
":opentelemetry-examples-kotlin-extension",
":opentelemetry-examples-grpc",
":opentelemetry-examples-resource-detection-gcp",
":doc-snippets:api",
":doc-snippets:configuration",
":doc-snippets:getting-started",
":doc-snippets:exporters",
":doc-snippets:spring-starter",
)
rootProject.children.forEach {
if (it.name != "doc-snippets") {
it.projectDir = file(
"$rootDir/${it.name}".replace("opentelemetry-examples-", "")
)
}
}