build.gradle.kts 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. plugins {
  2. id("otel.javaagent-instrumentation")
  3. }
  4. muzzle {
  5. // We have two independent covariants, so we have to test them independently.
  6. pass {
  7. group.set("org.springframework.data")
  8. module.set("spring-data-commons")
  9. versions.set("[1.8.0.RELEASE,]")
  10. extraDependency("org.springframework:spring-aop:1.2")
  11. assertInverse.set(true)
  12. }
  13. pass {
  14. group.set("org.springframework")
  15. module.set("spring-aop")
  16. versions.set("[1.2,]")
  17. extraDependency("org.springframework.data:spring-data-commons:1.8.0.RELEASE")
  18. assertInverse.set(true)
  19. }
  20. }
  21. val versions: Map<String, String> by project
  22. // DQH - API changes that impact instrumentation occurred in spring-data-commons in March 2014.
  23. // For now, that limits support to spring-data-commons 1.9.0 (maybe 1.8.0).
  24. // For testing, chose a couple spring-data modules that are old enough to work with 1.9.0.
  25. dependencies {
  26. library("org.springframework.data:spring-data-commons:1.8.0.RELEASE")
  27. compileOnly("org.springframework:spring-aop:1.2")
  28. testImplementation("org.spockframework:spock-spring:${versions["org.spockframework"]}")
  29. testLibrary("org.springframework:spring-test:3.0.0.RELEASE")
  30. testLibrary("org.springframework.data:spring-data-jpa:1.8.0.RELEASE")
  31. // JPA dependencies
  32. testInstrumentation(project(":instrumentation:jdbc:javaagent"))
  33. testImplementation("com.mysema.querydsl:querydsl-jpa:3.7.4")
  34. testImplementation("org.hsqldb:hsqldb:2.0.0")
  35. testLibrary("org.hibernate:hibernate-entitymanager:4.3.0.Final")
  36. latestDepTestLibrary("org.hibernate:hibernate-entitymanager:5.+")
  37. }