build.gradle.kts 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. plugins {
  2. id("otel.javaagent-instrumentation")
  3. }
  4. muzzle {
  5. pass {
  6. group.set("org.hibernate")
  7. module.set("hibernate-core")
  8. versions.set("[6.0.0.Final,)")
  9. assertInverse.set(true)
  10. }
  11. }
  12. dependencies {
  13. library("org.hibernate:hibernate-core:6.0.0.Final")
  14. implementation(project(":instrumentation:hibernate:hibernate-common:javaagent"))
  15. testInstrumentation(project(":instrumentation:jdbc:javaagent"))
  16. // Added to ensure cross compatibility:
  17. testInstrumentation(project(":instrumentation:hibernate:hibernate-3.3:javaagent"))
  18. testInstrumentation(project(":instrumentation:hibernate:hibernate-4.0:javaagent"))
  19. testInstrumentation(project(":instrumentation:hibernate:hibernate-procedure-call-4.3:javaagent"))
  20. testImplementation("com.h2database:h2:1.4.197")
  21. testImplementation("javax.xml.bind:jaxb-api:2.2.11")
  22. testImplementation("com.sun.xml.bind:jaxb-core:2.2.11")
  23. testImplementation("com.sun.xml.bind:jaxb-impl:2.2.11")
  24. testImplementation("javax.activation:activation:1.1.1")
  25. testImplementation("org.hsqldb:hsqldb:2.0.0")
  26. testImplementation("org.springframework.data:spring-data-jpa:3.0.0")
  27. }
  28. otelJava {
  29. minJavaVersionSupported.set(JavaVersion.VERSION_11)
  30. }
  31. tasks.withType<Test>().configureEach {
  32. // TODO run tests both with and without experimental span attributes
  33. jvmArgs("-Dotel.instrumentation.hibernate.experimental-span-attributes=true")
  34. }