38 lines
		
	
	
		
			1000 B
		
	
	
	
		
			Plaintext
		
	
	
	
			
		
		
	
	
			38 lines
		
	
	
		
			1000 B
		
	
	
	
		
			Plaintext
		
	
	
	
plugins {
 | 
						|
  id("otel.javaagent-instrumentation")
 | 
						|
}
 | 
						|
 | 
						|
muzzle {
 | 
						|
  pass {
 | 
						|
    group.set("biz.paluch.redis")
 | 
						|
    module.set("lettuce")
 | 
						|
    versions.set("[4.0.Final,)")
 | 
						|
    assertInverse.set(true)
 | 
						|
  }
 | 
						|
}
 | 
						|
 | 
						|
dependencies {
 | 
						|
  library("biz.paluch.redis:lettuce:4.0.Final")
 | 
						|
 | 
						|
  latestDepTestLibrary("biz.paluch.redis:lettuce:4.+") // see lettuce-5.0 module
 | 
						|
}
 | 
						|
 | 
						|
tasks {
 | 
						|
  withType<Test>().configureEach {
 | 
						|
    // TODO run tests both with and without experimental span attributes
 | 
						|
    jvmArgs("-Dotel.instrumentation.lettuce.experimental-span-attributes=true")
 | 
						|
    jvmArgs("-Dotel.instrumentation.lettuce.connection-telemetry.enabled=true")
 | 
						|
    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)
 | 
						|
  }
 | 
						|
}
 |