57 lines
		
	
	
		
			1.5 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
			
		
		
	
	
			57 lines
		
	
	
		
			1.5 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
| 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 {
 | |
|   withType<Test>().configureEach {
 | |
|     usesService(gradle.sharedServices.registrations["testcontainersBuildService"].service)
 | |
|   }
 | |
| 
 | |
|   val testStableSemconv by registering(Test::class) {
 | |
|     testClassesDirs = sourceSets.test.get().output.classesDirs
 | |
|     classpath = sourceSets.test.get().runtimeClasspath
 | |
|     jvmArgs("-Dotel.semconv-stability.opt-in=database")
 | |
|   }
 | |
| 
 | |
|   check {
 | |
|     dependsOn(testStableSemconv)
 | |
|   }
 | |
| }
 |