build.gradle.kts 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. plugins {
  2. id("otel.javaagent-instrumentation")
  3. }
  4. muzzle {
  5. pass {
  6. group.set("org.apache.camel")
  7. module.set("camel-core")
  8. versions.set("[2.20.1,3)")
  9. }
  10. }
  11. val camelversion = "2.20.1"
  12. val versions: Map<String, String> by project
  13. dependencies {
  14. library("org.apache.camel:camel-core:$camelversion")
  15. implementation("io.opentelemetry:opentelemetry-extension-aws")
  16. // without adding this dependency, javadoc fails:
  17. // warning: unknown enum constant XmlAccessType.PROPERTY
  18. // reason: class file for javax.xml.bind.annotation.XmlAccessType not found
  19. // due to usage of org.apache.camel.model.RouteDefinition in CamelTracingService
  20. // which has jaxb class-level annotations
  21. compileOnly("javax.xml.bind:jaxb-api:2.3.1")
  22. testInstrumentation(project(":instrumentation:apache-httpclient:apache-httpclient-2.0:javaagent"))
  23. testInstrumentation(project(":instrumentation:servlet:servlet-3.0:javaagent"))
  24. testInstrumentation(project(":instrumentation:aws-sdk:aws-sdk-1.11:javaagent"))
  25. testLibrary("org.apache.camel:camel-spring-boot-starter:$camelversion")
  26. testLibrary("org.apache.camel:camel-jetty-starter:$camelversion")
  27. testLibrary("org.apache.camel:camel-http-starter:$camelversion")
  28. testLibrary("org.apache.camel:camel-jaxb-starter:$camelversion")
  29. testLibrary("org.apache.camel:camel-undertow:$camelversion")
  30. testLibrary("org.apache.camel:camel-aws:$camelversion")
  31. testImplementation("org.springframework.boot:spring-boot-starter-test:1.5.17.RELEASE")
  32. testImplementation("org.springframework.boot:spring-boot-starter:1.5.17.RELEASE")
  33. testImplementation("org.spockframework:spock-spring:${versions["org.spockframework"]}")
  34. testImplementation("javax.xml.bind:jaxb-api:2.3.1")
  35. testImplementation("org.elasticmq:elasticmq-rest-sqs_2.12:1.0.0")
  36. testImplementation("org.testcontainers:localstack:${versions["org.testcontainers"]}")
  37. latestDepTestLibrary("org.apache.camel:camel-core:2.+")
  38. latestDepTestLibrary("org.apache.camel:camel-spring-boot-starter:2.+")
  39. latestDepTestLibrary("org.apache.camel:camel-jetty-starter:2.+")
  40. latestDepTestLibrary("org.apache.camel:camel-http-starter:2.+")
  41. latestDepTestLibrary("org.apache.camel:camel-jaxb-starter:2.+")
  42. latestDepTestLibrary("org.apache.camel:camel-undertow:2.+")
  43. latestDepTestLibrary("org.apache.camel:camel-aws:2.+")
  44. }
  45. tasks {
  46. withType<Test>().configureEach {
  47. // TODO run tests both with and without experimental span attributes
  48. jvmArgs("-Dotel.instrumentation.apache-camel.experimental-span-attributes=true")
  49. jvmArgs("-Dotel.instrumentation.aws-sdk.experimental-span-attributes=true")
  50. }
  51. }