build.gradle.kts 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. plugins {
  2. id("otel.javaagent-instrumentation")
  3. }
  4. muzzle {
  5. pass {
  6. group.set("com.couchbase.client")
  7. module.set("java-client")
  8. versions.set("[2.6.0,3)")
  9. // these versions were released as ".bundle" instead of ".jar"
  10. skip("2.7.5", "2.7.8")
  11. assertInverse.set(true)
  12. }
  13. fail {
  14. group.set("com.couchbase.client")
  15. module.set("couchbase-client")
  16. versions.set("(,)")
  17. }
  18. }
  19. dependencies {
  20. implementation(project(":instrumentation:rxjava:rxjava-1.0:library"))
  21. implementation(project(":instrumentation:couchbase:couchbase-2-common:javaagent"))
  22. library("com.couchbase.client:java-client:2.6.0")
  23. testInstrumentation(project(":instrumentation:couchbase:couchbase-2.0:javaagent"))
  24. testImplementation(project(":instrumentation:couchbase:couchbase-common:testing"))
  25. testLibrary("org.springframework.data:spring-data-couchbase:3.1.0.RELEASE")
  26. testLibrary("com.couchbase.client:encryption:1.0.0")
  27. latestDepTestLibrary("org.springframework.data:spring-data-couchbase:3.1.+")
  28. latestDepTestLibrary("com.couchbase.client:java-client:2.+")
  29. }
  30. tasks.withType<Test>().configureEach {
  31. // TODO run tests both with and without experimental span attributes
  32. jvmArgs("-Dotel.instrumentation.couchbase.experimental-span-attributes=true")
  33. // required on jdk17
  34. jvmArgs("--add-opens=java.base/java.lang=ALL-UNNAMED")
  35. jvmArgs("-XX:+IgnoreUnrecognizedVMOptions")
  36. }