-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
33 lines (28 loc) · 836 Bytes
/
build.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
plugins {
id("otel.library-instrumentation")
}
repositories {
mavenCentral()
maven("https://maven.restlet.talend.com/")
mavenLocal()
}
dependencies {
library("org.restlet.jse:org.restlet:2.0.2")
testImplementation(project(":instrumentation:restlet:restlet-2.0:testing"))
testLibrary("org.restlet.jse:org.restlet.ext.jetty:2.0.2")
}
// restlet registers the first engine that is present on classpath, so we need to enforce the appropriate version
if (findProperty("testLatestDeps") as Boolean) {
configurations.configureEach {
resolutionStrategy {
eachDependency {
if (requested.group == "org.restlet.jse") {
useVersion("2.+")
}
}
}
}
}
tasks.withType<Test>().configureEach {
jvmArgs("-Dotel.instrumentation.common.experimental.controller-telemetry.enabled=true")
}