opentelemetry-java-instrume.../instrumentation/apache-camel-2.20/javaagent/apache-camel-2.20-javaagent...

65 lines
3.0 KiB
Groovy

apply from: "$rootDir/gradle/instrumentation.gradle"
muzzle {
pass {
group = "org.apache.camel"
module = "camel-core"
versions = "[2.20.1,3)"
}
}
ext {
camelversion = '2.20.1'
}
dependencies {
library group: 'org.apache.camel', name: 'camel-core', version: "$camelversion"
implementation deps.opentelemetryExtAws
testInstrumentation project(':instrumentation:apache-httpclient:apache-httpclient-2.0:javaagent')
testInstrumentation project(':instrumentation:servlet:servlet-3.0:javaagent')
testInstrumentation project(':instrumentation:aws-sdk:aws-sdk-1.11:javaagent')
testLibrary group: 'org.apache.camel', name: 'camel-spring-boot-starter', version: "$camelversion"
testLibrary group: 'org.apache.camel', name: 'camel-jetty-starter', version: "$camelversion"
testLibrary group: 'org.apache.camel', name: 'camel-http-starter', version: "$camelversion"
testLibrary group: 'org.apache.camel', name: 'camel-jaxb-starter', version: "$camelversion"
testLibrary group: 'org.apache.camel', name: 'camel-undertow', version: "$camelversion"
testLibrary group: 'org.apache.camel', name: 'camel-aws', version: "$camelversion"
testImplementation group: 'org.springframework.boot', name: 'spring-boot-starter-test', version: '1.5.17.RELEASE'
testImplementation group: 'org.springframework.boot', name: 'spring-boot-starter', version: '1.5.17.RELEASE'
testImplementation group: 'org.spockframework', name: 'spock-spring', version: "$versions.spock"
testImplementation 'javax.xml.bind:jaxb-api:2.3.1'
testImplementation group: 'org.elasticmq', name: 'elasticmq-rest-sqs_2.12', version: '1.0.0'
testImplementation deps.testcontainers
testImplementation "org.testcontainers:localstack:${versions.testcontainers}"
latestDepTestLibrary group: 'org.apache.camel', name: 'camel-core', version: '2.+'
latestDepTestLibrary group: 'org.apache.camel', name: 'camel-spring-boot-starter', version: '2.+'
latestDepTestLibrary group: 'org.apache.camel', name: 'camel-jetty-starter', version: '2.+'
latestDepTestLibrary group: 'org.apache.camel', name: 'camel-http-starter', version: '2.+'
latestDepTestLibrary group: 'org.apache.camel', name: 'camel-jaxb-starter', version: '2.+'
latestDepTestLibrary group: 'org.apache.camel', name: 'camel-undertow', version: '2.+'
latestDepTestLibrary group: 'org.apache.camel', name: 'camel-aws', version: '2.+'
}
tasks.withType(Test) {
// TODO run tests both with and without experimental span attributes
jvmArgs "-Dotel.instrumentation.apache-camel.experimental-span-attributes=true"
jvmArgs "-Dotel.instrumentation.aws-sdk.experimental-span-attributes=true"
}
javadoc {
dependencies {
// without adding this dependency, javadoc fails:
// warning: unknown enum constant XmlAccessType.PROPERTY
// reason: class file for javax.xml.bind.annotation.XmlAccessType not found
// due to usage of org.apache.camel.model.RouteDefinition in CamelTracingService
// which has jaxb class-level annotations
compileOnly 'javax.xml.bind:jaxb-api:2.3.1'
}
}