build.gradle.kts 1005 B

1234567891011121314151617181920212223242526272829303132333435
  1. plugins {
  2. id("otel.javaagent-instrumentation")
  3. id("otel.java-conventions")
  4. }
  5. muzzle {
  6. pass {
  7. group.set("io.r2dbc")
  8. module.set("r2dbc-spi")
  9. versions.set("[1.0.0.RELEASE,)")
  10. extraDependency("io.projectreactor:reactor-core:3.4.12")
  11. }
  12. }
  13. sourceSets {
  14. main {
  15. val shadedDep = project(":instrumentation:r2dbc-1.0:library-instrumentation-shaded")
  16. output.dir(
  17. shadedDep.file("build/extracted/shadow"),
  18. "builtBy" to ":instrumentation:r2dbc-1.0:library-instrumentation-shaded:extractShadowJar",
  19. )
  20. }
  21. }
  22. dependencies {
  23. library("io.r2dbc:r2dbc-spi:1.0.0.RELEASE")
  24. compileOnly(project(path = ":instrumentation:r2dbc-1.0:library-instrumentation-shaded", configuration = "shadow"))
  25. testImplementation(project(":instrumentation:r2dbc-1.0:testing"))
  26. testInstrumentation(project(":instrumentation:reactor:reactor-3.1:javaagent"))
  27. }
  28. tasks.withType<Test>().configureEach {
  29. usesService(gradle.sharedServices.registrations["testcontainersBuildService"].service)
  30. }