-
Notifications
You must be signed in to change notification settings - Fork 45
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
64 lines (53 loc) · 2.65 KB
/
build.gradle.kts
File metadata and controls
64 lines (53 loc) · 2.65 KB
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
plugins {
`java-platform`
}
val otelVersion = "1.59.0"
val otelAlphaVersion = otelVersion.replaceFirst("(-SNAPSHOT)?$".toRegex(), "-alpha$1")
val otelInstrumentationVersion = "2.26.0-SNAPSHOT"
val otelInstrumentationAlphaVersion = otelInstrumentationVersion.replaceFirst("(-SNAPSHOT)?$".toRegex(), "-alpha$1")
val otelContribAlphaVersion = "1.53.0-alpha"
val autoValueVersion = "1.11.1"
val dockerJavaVersion = "3.7.0"
val mockitoVersion = "5.21.0"
val protobufVersion = "4.33.5"
val slf4jVersion = "2.0.17"
// instrumentation version is used to compute Implementation-Version manifest attribute
rootProject.extra["otelInstrumentationVersion"] = otelInstrumentationVersion
rootProject.extra["otelVersion"] = otelVersion
rootProject.extra["otelContribVersion"] = otelContribAlphaVersion.replace("-alpha", "")
rootProject.extra["protobufVersion"] = protobufVersion
javaPlatform {
// What a great hack!
allowDependencies()
}
dependencies {
// BOMs
api(enforcedPlatform("com.fasterxml.jackson:jackson-bom:2.21.1"))
api(enforcedPlatform("com.google.protobuf:protobuf-bom:$protobufVersion"))
api(enforcedPlatform("com.squareup.okhttp3:okhttp-bom:5.3.2"))
api(enforcedPlatform("io.grpc:grpc-bom:1.79.0"))
api(enforcedPlatform("io.opentelemetry:opentelemetry-bom-alpha:$otelAlphaVersion"))
api(enforcedPlatform("io.opentelemetry.instrumentation:opentelemetry-instrumentation-bom-alpha:$otelInstrumentationAlphaVersion"))
api(enforcedPlatform("org.junit:junit-bom:6.0.3"))
api(enforcedPlatform("org.testcontainers:testcontainers-bom:2.0.3"))
constraints {
api("com.google.auto.service:auto-service:1.1.1")
api("org.assertj:assertj-core:3.27.7")
api("org.awaitility:awaitility:4.3.0")
api("com.github.docker-java:docker-java-core:$dockerJavaVersion")
api("com.github.docker-java:docker-java-transport-httpclient5:$dockerJavaVersion")
api("org.mockito:mockito-core:$mockitoVersion")
api("org.mockito:mockito-junit-jupiter:$mockitoVersion")
api("org.slf4j:slf4j-api:$slf4jVersion")
api("org.slf4j:slf4j-simple:$slf4jVersion")
api("org.slf4j:jcl-over-slf4j:$slf4jVersion")
api("com.google.auto.value:auto-value:$autoValueVersion")
api("com.google.auto.value:auto-value-annotations:$autoValueVersion")
api("io.opentelemetry.contrib:opentelemetry-samplers:$otelContribAlphaVersion")
api("io.opentelemetry.contrib:opentelemetry-resource-providers:$otelContribAlphaVersion")
api("io.opentelemetry.contrib:opentelemetry-opamp-client:${otelContribAlphaVersion}")
api("io.opentelemetry.proto:opentelemetry-proto:1.9.0-alpha")
api("org.apache.commons:commons-jexl3:3.6.2")
api("org.snakeyaml:snakeyaml-engine:2.10")
}
}