opentelemetry-java-instrume.../java-agent/instrumentation/play-2.6/play-2.6.gradle

61 lines
1.9 KiB
Groovy

ext {
minJavaVersionForTests = JavaVersion.VERSION_1_8
// Play doesn't work with Java 9+ until 2.6.12
maxJavaVersionForTests = JavaVersion.VERSION_1_8
}
def scalaVersion = '2.11'
def playVersion = '2.6.0'
muzzle {
pass {
group = 'com.typesafe.play'
module = "play_$scalaVersion"
versions = "[$playVersion,)"
assertInverse = true
}
pass {
group = 'com.typesafe.play'
module = 'play_2.12'
versions = '[2.6.0,2.8.0)'
assertInverse = true
}
pass {
group = 'com.typesafe.play'
module = 'play_2.13'
versions = '[2.6.0,2.8.0)'
assertInverse = true
}
}
apply from: "${rootDir}/gradle/java.gradle"
apply plugin: 'org.unbroken-dome.test-sets'
testSets {
latestDepTest {
dirName = 'test'
}
}
dependencies {
main_java8Compile group: 'com.typesafe.play', name: "play_$scalaVersion", version: playVersion
testCompile project(':java-agent:instrumentation:java-concurrent')
testCompile project(':java-agent:instrumentation:netty-4.0')
testCompile project(':java-agent:instrumentation:netty-4.1')
testCompile project(':java-agent:instrumentation:akka-http-10.0')
testCompile group: 'com.typesafe.play', name: "play-java_$scalaVersion", version: playVersion
// TODO: Play WS is a separately versioned library starting with 2.6 and needs separate instrumentation.
testCompile(group: 'com.typesafe.play', name: "play-test_$scalaVersion", version: playVersion) {
exclude group: 'org.eclipse.jetty.websocket', module: 'websocket-client'
}
// TODO: This should be changed to the latest in scala 2.13 instead of 2.11 since its ahead
latestDepTestCompile group: 'com.typesafe.play', name: "play-java_$scalaVersion", version: '2.+'
latestDepTestCompile(group: 'com.typesafe.play', name: "play-test_$scalaVersion", version: '2.+') {
exclude group: 'org.eclipse.jetty.websocket', module: 'websocket-client'
}
}