build.gradle.kts 866 B

12345678910111213141516171819202122232425262728
  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("[3.1.0.RELEASE,]")
  9. assertInverse.set(true)
  10. }
  11. }
  12. dependencies {
  13. // 3.2.3 is the first version with which the tests will run. Lower versions require other
  14. // classes and packages to be imported. Versions 3.1.0+ work with the instrumentation.
  15. library("org.springframework:spring-context:3.1.0.RELEASE")
  16. testLibrary("org.springframework:spring-context:3.2.3.RELEASE")
  17. }
  18. tasks.withType<Test>().configureEach {
  19. // TODO run tests both with and without experimental span attributes
  20. jvmArgs("-Dotel.instrumentation.spring-scheduling.experimental-span-attributes=true")
  21. // required on jdk17
  22. jvmArgs("--add-opens=java.base/java.lang=ALL-UNNAMED")
  23. jvmArgs("-XX:+IgnoreUnrecognizedVMOptions")
  24. }