build.gradle.kts 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. plugins {
  2. id("otel.javaagent-instrumentation")
  3. }
  4. muzzle {
  5. pass {
  6. group.set("org.springframework")
  7. module.set("spring-context")
  8. versions.set("[4.0.0.RELEASE,6)")
  9. }
  10. }
  11. dependencies {
  12. compileOnly("com.google.auto.value:auto-value-annotations")
  13. annotationProcessor("com.google.auto.value:auto-value")
  14. bootstrap(project(":instrumentation:rmi:bootstrap"))
  15. testInstrumentation(project(":instrumentation:rmi:javaagent"))
  16. library("org.springframework:spring-context:4.0.0.RELEASE")
  17. library("org.springframework:spring-aop:4.0.0.RELEASE")
  18. testLibrary("org.springframework.boot:spring-boot:1.1.0.RELEASE")
  19. // rmi remoting was removed in spring 6
  20. latestDepTestLibrary("org.springframework:spring-context:5.+") // documented limitation
  21. latestDepTestLibrary("org.springframework:spring-aop:5.+") // documented limitation
  22. latestDepTestLibrary("org.springframework.boot:spring-boot:2.+") // documented limitation
  23. }
  24. tasks.withType<Test>().configureEach {
  25. jvmArgs("-Djava.rmi.server.hostname=127.0.0.1")
  26. }
  27. configurations.testRuntimeClasspath {
  28. resolutionStrategy {
  29. // requires old logback (and therefore also old slf4j)
  30. force("ch.qos.logback:logback-classic:1.2.11")
  31. force("org.slf4j:slf4j-api:1.7.36")
  32. }
  33. }