56 lines
1.7 KiB
Plaintext
56 lines
1.7 KiB
Plaintext
plugins {
|
|
id("otel.javaagent-instrumentation")
|
|
}
|
|
|
|
muzzle {
|
|
pass {
|
|
group.set("org.elasticsearch.client")
|
|
module.set("elasticsearch-rest-client")
|
|
versions.set("[6.4,7.0)")
|
|
assertInverse.set(true)
|
|
}
|
|
|
|
fail {
|
|
group.set("org.elasticsearch.client")
|
|
module.set("rest")
|
|
versions.set("(,)")
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
library("org.elasticsearch.client:elasticsearch-rest-client:6.4.0")
|
|
|
|
implementation(project(":instrumentation:elasticsearch:elasticsearch-rest-common-5.0:javaagent"))
|
|
|
|
testInstrumentation(project(":instrumentation:apache-httpclient:apache-httpclient-4.0:javaagent"))
|
|
testInstrumentation(project(":instrumentation:apache-httpasyncclient-4.1:javaagent"))
|
|
|
|
testImplementation("org.apache.logging.log4j:log4j-core:2.11.0")
|
|
testImplementation("org.apache.logging.log4j:log4j-api:2.11.0")
|
|
testImplementation("com.fasterxml.jackson.core:jackson-databind")
|
|
|
|
testImplementation("org.testcontainers:elasticsearch")
|
|
testLibrary("org.elasticsearch.client:elasticsearch-rest-client:6.4.0")
|
|
|
|
latestDepTestLibrary("org.elasticsearch.client:elasticsearch-rest-client:6.+") // see elasticsearch-rest-7.0 module
|
|
}
|
|
|
|
tasks {
|
|
withType<Test>().configureEach {
|
|
usesService(gradle.sharedServices.registrations["testcontainersBuildService"].service)
|
|
systemProperty("collectMetadata", findProperty("collectMetadata")?.toString() ?: "false")
|
|
}
|
|
|
|
val testStableSemconv by registering(Test::class) {
|
|
testClassesDirs = sourceSets.test.get().output.classesDirs
|
|
classpath = sourceSets.test.get().runtimeClasspath
|
|
|
|
jvmArgs("-Dotel.semconv-stability.opt-in=database")
|
|
systemProperty("metadataConfig", "otel.semconv-stability.opt-in=database")
|
|
}
|
|
|
|
check {
|
|
dependsOn(testStableSemconv)
|
|
}
|
|
}
|