12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- plugins {
- id("otel.javaagent-instrumentation")
- }
- muzzle {
- pass {
- group.set("com.couchbase.client")
- module.set("java-client")
- versions.set("[3.1,3.1.6)")
- // these versions were released as ".bundle" instead of ".jar"
- skip("2.7.5", "2.7.8")
- assertInverse.set(true)
- }
- }
- sourceSets {
- main {
- val shadedDep = project(":instrumentation:couchbase:couchbase-3.1:tracing-opentelemetry-shaded")
- output.dir(
- shadedDep.file("build/extracted/shadow"),
- "builtBy" to ":instrumentation:couchbase:couchbase-3.1:tracing-opentelemetry-shaded:extractShadowJar",
- )
- }
- }
- dependencies {
- compileOnly(
- project(
- path = ":instrumentation:couchbase:couchbase-3.1:tracing-opentelemetry-shaded",
- configuration = "shadow",
- ),
- )
- // 3.1.4 (instead of 3.1.0) needed for test stability and for compatibility with server versions that run on M1 processors
- library("com.couchbase.client:java-client:3.1.4")
- testImplementation("org.testcontainers:couchbase")
- latestDepTestLibrary("com.couchbase.client:java-client:3.1.5") // see couchbase-3.1.6 module
- }
- tasks {
- test {
- usesService(gradle.sharedServices.registrations["testcontainersBuildService"].service)
- }
- }
|