apply from: "$rootDir/gradle/instrumentation.gradle" muzzle { // Cant assert fails because muzzle assumes all instrumentations will fail // Instrumentations in jaxrs-2.0-common will pass // Resteasy changes a class's package in 3.1.0 then moves it back in 3.5.0 and then moves it forward again in 4.0.0 // so the jaxrs-2.0-resteasy-3.0 module applies to [3.0, 3.1) and [3.5, 4.0) // and the jaxrs-2.0-resteasy-3.1 module applies to [3.1, 3.5) and [4.0, ) pass { group = "org.jboss.resteasy" module = "resteasy-jaxrs" versions = "[3.1.0.Final,3.5.0.Final)" } pass { group = "org.jboss.resteasy" module = "resteasy-core" versions = "[4.0.0.Final,)" } } dependencies { compileOnly group: 'javax.ws.rs', name: 'javax.ws.rs-api', version: '2.0' library group: 'org.jboss.resteasy', name: 'resteasy-jaxrs', version: '3.1.0.Final' implementation project(':instrumentation:jaxrs:jaxrs-2.0:jaxrs-2.0-common:javaagent') implementation project(':instrumentation:jaxrs:jaxrs-2.0:jaxrs-2.0-resteasy-common:javaagent') testInstrumentation project(':instrumentation:servlet:servlet-3.0:javaagent') testInstrumentation project(':instrumentation:servlet:servlet-javax-common:javaagent') testImplementation project(':instrumentation:jaxrs:jaxrs-2.0:jaxrs-2.0-testing') testImplementation group: 'org.eclipse.jetty', name: 'jetty-webapp', version: '9.4.6.v20170531' testLibrary(group: 'org.jboss.resteasy', name: 'resteasy-undertow', version: '3.1.0.Final') { exclude group: 'org.jboss.resteasy', module: 'resteasy-client' } testLibrary group: 'org.jboss.resteasy', name: 'resteasy-servlet-initializer', version: '3.1.0.Final' // artifact name changed from 'resteasy-jaxrs' to 'resteasy-core' starting from version 4.0.0 latestDepTestLibrary group: 'org.jboss.resteasy', name: 'resteasy-core', version: '+' } test { systemProperty 'testLatestDeps', testLatestDeps } if (findProperty('testLatestDeps')) { configurations { // artifact name changed from 'resteasy-jaxrs' to 'resteasy-core' starting from version 4.0.0 testImplementation.exclude group: 'org.jboss.resteasy', module: 'resteasy-jaxrs' } } tasks.withType(Test) { // TODO run tests both with and without experimental span attributes jvmArgs "-Dotel.instrumentation.jaxrs.experimental-span-attributes=true" }