build.gradle.kts 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. plugins {
  2. id("otel.javaagent-instrumentation")
  3. }
  4. muzzle {
  5. pass {
  6. group.set("org.eclipse.jetty")
  7. module.set("jetty-server")
  8. // Jetty 11+ is covered by jetty-11.0 module
  9. versions.set("[8.0.0.v20110901,11)")
  10. assertInverse.set(true)
  11. }
  12. }
  13. dependencies {
  14. bootstrap(project(":instrumentation:executors:bootstrap"))
  15. library("org.eclipse.jetty:jetty-server:8.0.0.v20110901")
  16. implementation(project(":instrumentation:jetty:jetty-common:javaagent"))
  17. implementation(project(":instrumentation:servlet:servlet-3.0:javaagent"))
  18. bootstrap(project(":instrumentation:servlet:servlet-common:bootstrap"))
  19. testInstrumentation(project(":instrumentation:servlet:servlet-javax-common:javaagent"))
  20. testInstrumentation(project(":instrumentation:jetty:jetty-11.0:javaagent"))
  21. testLibrary("org.eclipse.jetty:jetty-servlet:8.0.0.v20110901")
  22. latestDepTestLibrary("org.eclipse.jetty:jetty-server:10.+") // see jetty-11.0 module
  23. latestDepTestLibrary("org.eclipse.jetty:jetty-servlet:10.+") // see jetty-11.0 module
  24. }
  25. // jetty-server 10+ requires Java 11
  26. val latestDepTest = findProperty("testLatestDeps") as Boolean
  27. if (latestDepTest) {
  28. otelJava {
  29. minJavaVersionSupported.set(JavaVersion.VERSION_11)
  30. }
  31. }
  32. tasks {
  33. val testStableSemconv by registering(Test::class) {
  34. jvmArgs("-Dotel.semconv-stability.opt-in=http")
  35. }
  36. check {
  37. dependsOn(testStableSemconv)
  38. }
  39. }