build.gradle.kts 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. plugins {
  2. id("otel.javaagent-testing")
  3. }
  4. dependencies {
  5. testInstrumentation(project(":instrumentation:jdbc:javaagent"))
  6. testInstrumentation(project(":instrumentation:r2dbc-1.0:javaagent"))
  7. testInstrumentation(project(":instrumentation:reactor:reactor-3.1:javaagent"))
  8. testInstrumentation(project(":instrumentation:spring:spring-core-2.0:javaagent"))
  9. testInstrumentation(project(":instrumentation:spring:spring-data:spring-data-1.8:javaagent"))
  10. testImplementation(project(":instrumentation:spring:spring-data:spring-data-common:testing"))
  11. testLibrary("org.hibernate.orm:hibernate-core:6.0.0.Final")
  12. testLibrary("org.springframework.data:spring-data-commons:3.0.0")
  13. testLibrary("org.springframework.data:spring-data-jpa:3.0.0")
  14. testLibrary("org.springframework.data:spring-data-r2dbc:3.0.0")
  15. testLibrary("org.springframework:spring-test:6.0.0")
  16. testImplementation("org.hsqldb:hsqldb:2.0.0")
  17. testImplementation("com.h2database:h2:1.4.197")
  18. testImplementation("io.r2dbc:r2dbc-h2:1.0.0.RELEASE")
  19. latestDepTestLibrary("org.hibernate.orm:hibernate-core:6.2.+")
  20. }
  21. otelJava {
  22. minJavaVersionSupported.set(JavaVersion.VERSION_17)
  23. }
  24. testing {
  25. suites {
  26. val reactiveTest by registering(JvmTestSuite::class) {
  27. dependencies {
  28. implementation("org.springframework.data:spring-data-r2dbc:3.0.0")
  29. implementation("org.testcontainers:testcontainers")
  30. implementation("io.r2dbc:r2dbc-h2:1.0.0.RELEASE")
  31. implementation("com.h2database:h2:1.4.197")
  32. }
  33. }
  34. }
  35. }
  36. tasks {
  37. test {
  38. jvmArgs("--add-opens=java.base/java.lang.invoke=ALL-UNNAMED")
  39. jvmArgs("--add-opens=java.base/java.lang=ALL-UNNAMED")
  40. jvmArgs("-XX:+IgnoreUnrecognizedVMOptions")
  41. }
  42. check {
  43. dependsOn(testing.suites)
  44. }
  45. }