build.gradle.kts 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. plugins {
  2. id("otel.javaagent-instrumentation")
  3. }
  4. muzzle {
  5. pass {
  6. group.set("org.apache.myfaces.core")
  7. module.set("myfaces-impl")
  8. versions.set("[1.2,3)")
  9. extraDependency("jakarta.el:jakarta.el-api:3.0.3")
  10. assertInverse.set(true)
  11. }
  12. }
  13. dependencies {
  14. compileOnly("org.apache.myfaces.core:myfaces-api:1.2.12")
  15. compileOnly("javax.el:el-api:1.0")
  16. implementation(project(":instrumentation:jsf:jsf-javax-common:javaagent"))
  17. testImplementation(project(":instrumentation:jsf:jsf-javax-common:testing"))
  18. testInstrumentation(project(":instrumentation:servlet:servlet-3.0:javaagent"))
  19. testInstrumentation(project(":instrumentation:servlet:servlet-javax-common:javaagent"))
  20. }
  21. val latestDepTest = findProperty("testLatestDeps") as Boolean
  22. testing {
  23. suites {
  24. val myfaces12Test by registering(JvmTestSuite::class) {
  25. dependencies {
  26. implementation(project(":instrumentation:jsf:jsf-javax-common:testing"))
  27. implementation("com.sun.facelets:jsf-facelets:1.1.14")
  28. if (latestDepTest) {
  29. implementation("org.apache.myfaces.core:myfaces-impl:1.2.+")
  30. } else {
  31. implementation("org.apache.myfaces.core:myfaces-impl:1.2.2")
  32. }
  33. }
  34. }
  35. val myfaces2Test by registering(JvmTestSuite::class) {
  36. dependencies {
  37. implementation(project(":instrumentation:jsf:jsf-javax-common:testing"))
  38. implementation("javax.xml.bind:jaxb-api:2.2.11")
  39. implementation("com.sun.xml.bind:jaxb-impl:2.2.11")
  40. if (latestDepTest) {
  41. implementation("org.apache.myfaces.core:myfaces-impl:2.+")
  42. } else {
  43. implementation("org.apache.myfaces.core:myfaces-impl:2.2.0")
  44. }
  45. }
  46. }
  47. }
  48. }
  49. tasks {
  50. check {
  51. dependsOn(testing.suites)
  52. }
  53. }
  54. tasks.withType<Test>().configureEach {
  55. jvmArgs("-Dotel.instrumentation.common.experimental.controller-telemetry.enabled=true")
  56. jvmArgs("-Dotel.instrumentation.common.experimental.view-telemetry.enabled=true")
  57. }