build.gradle.kts 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  1. plugins {
  2. id("otel.javaagent-instrumentation")
  3. }
  4. muzzle {
  5. pass {
  6. group.set("com.xuxueli")
  7. module.set("xxl-job-core")
  8. versions.set("[1.9.2, 2.1.2)")
  9. assertInverse.set(true)
  10. }
  11. }
  12. dependencies {
  13. library("com.xuxueli:xxl-job-core:1.9.2") {
  14. exclude("org.codehaus.groovy", "groovy")
  15. }
  16. implementation(project(":instrumentation:xxl-job:xxl-job-common:javaagent"))
  17. testInstrumentation(project(":instrumentation:xxl-job:xxl-job-2.1.2:javaagent"))
  18. testInstrumentation(project(":instrumentation:xxl-job:xxl-job-2.3.0:javaagent"))
  19. // It needs the javax.annotation-api in xxl-job-core 1.9.2.
  20. testImplementation("javax.annotation:javax.annotation-api:1.3.2")
  21. testImplementation(project(":instrumentation:xxl-job:xxl-job-common:testing"))
  22. latestDepTestLibrary("com.xuxueli:xxl-job-core:2.1.1") {
  23. exclude("org.codehaus.groovy", "groovy")
  24. }
  25. }
  26. tasks.withType<Test>().configureEach {
  27. // required on jdk17
  28. jvmArgs("--add-opens=java.base/java.lang=ALL-UNNAMED")
  29. jvmArgs("-XX:+IgnoreUnrecognizedVMOptions")
  30. jvmArgs("-Dotel.instrumentation.xxl-job.experimental-span-attributes=true")
  31. }