|
@@ -1,6 +1,6 @@
|
|
|
// Set properties before any plugins get loaded
|
|
|
ext {
|
|
|
- minJavaVersionForTests = JavaVersion.VERSION_1_8
|
|
|
+ minJavaVersionForTests = JavaVersion.VERSION_1_8
|
|
|
}
|
|
|
|
|
|
apply from: "$rootDir/gradle/instrumentation.gradle"
|
|
@@ -8,100 +8,100 @@ apply from: "$rootDir/gradle/test-with-scala.gradle"
|
|
|
apply plugin: 'org.unbroken-dome.test-sets'
|
|
|
|
|
|
testSets {
|
|
|
- lagomTest
|
|
|
+ lagomTest
|
|
|
|
|
|
- version101Test {
|
|
|
- dirName = 'test'
|
|
|
- }
|
|
|
+ version101Test {
|
|
|
+ dirName = 'test'
|
|
|
+ }
|
|
|
|
|
|
- latestDepTest {
|
|
|
- dirName = 'test'
|
|
|
- }
|
|
|
+ latestDepTest {
|
|
|
+ dirName = 'test'
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
compileLagomTestJava {
|
|
|
- sourceCompatibility = 1.8
|
|
|
- targetCompatibility = 1.8
|
|
|
+ sourceCompatibility = 1.8
|
|
|
+ targetCompatibility = 1.8
|
|
|
}
|
|
|
|
|
|
compileLagomTestGroovy {
|
|
|
- sourceCompatibility = 1.8
|
|
|
- targetCompatibility = 1.8
|
|
|
+ sourceCompatibility = 1.8
|
|
|
+ targetCompatibility = 1.8
|
|
|
}
|
|
|
|
|
|
|
|
|
muzzle {
|
|
|
- pass {
|
|
|
- group = 'com.typesafe.akka'
|
|
|
- module = 'akka-http_2.11'
|
|
|
- versions = "[10.0.0,10.1.0)"
|
|
|
- // later versions of akka-http expect streams to be provided
|
|
|
- extraDependency 'com.typesafe.akka:akka-stream_2.11:2.4.14'
|
|
|
- }
|
|
|
- pass {
|
|
|
- group = 'com.typesafe.akka'
|
|
|
- module = 'akka-http_2.12'
|
|
|
- versions = "[10.0.0,10.1.0)"
|
|
|
- // later versions of akka-http expect streams to be provided
|
|
|
- extraDependency 'com.typesafe.akka:akka-stream_2.12:2.4.14'
|
|
|
- }
|
|
|
- pass {
|
|
|
- group = 'com.typesafe.akka'
|
|
|
- module = 'akka-http_2.11'
|
|
|
- versions = "[10.1.0,)"
|
|
|
- // later versions of akka-http expect streams to be provided
|
|
|
- extraDependency 'com.typesafe.akka:akka-stream_2.11:2.5.11'
|
|
|
- }
|
|
|
- pass {
|
|
|
- group = 'com.typesafe.akka'
|
|
|
- module = 'akka-http_2.12'
|
|
|
- versions = "[10.1.0,)"
|
|
|
- // later versions of akka-http expect streams to be provided
|
|
|
- extraDependency 'com.typesafe.akka:akka-stream_2.12:2.5.11'
|
|
|
- }
|
|
|
- //There is no akka-http 10.0.x series for scala 2.13
|
|
|
- pass {
|
|
|
- group = 'com.typesafe.akka'
|
|
|
- module = 'akka-http_2.13'
|
|
|
- versions = "[10.1.8,)"
|
|
|
- // later versions of akka-http expect streams to be provided
|
|
|
- extraDependency 'com.typesafe.akka:akka-stream_2.13:2.5.23'
|
|
|
- }
|
|
|
+ pass {
|
|
|
+ group = 'com.typesafe.akka'
|
|
|
+ module = 'akka-http_2.11'
|
|
|
+ versions = "[10.0.0,10.1.0)"
|
|
|
+ // later versions of akka-http expect streams to be provided
|
|
|
+ extraDependency 'com.typesafe.akka:akka-stream_2.11:2.4.14'
|
|
|
+ }
|
|
|
+ pass {
|
|
|
+ group = 'com.typesafe.akka'
|
|
|
+ module = 'akka-http_2.12'
|
|
|
+ versions = "[10.0.0,10.1.0)"
|
|
|
+ // later versions of akka-http expect streams to be provided
|
|
|
+ extraDependency 'com.typesafe.akka:akka-stream_2.12:2.4.14'
|
|
|
+ }
|
|
|
+ pass {
|
|
|
+ group = 'com.typesafe.akka'
|
|
|
+ module = 'akka-http_2.11'
|
|
|
+ versions = "[10.1.0,)"
|
|
|
+ // later versions of akka-http expect streams to be provided
|
|
|
+ extraDependency 'com.typesafe.akka:akka-stream_2.11:2.5.11'
|
|
|
+ }
|
|
|
+ pass {
|
|
|
+ group = 'com.typesafe.akka'
|
|
|
+ module = 'akka-http_2.12'
|
|
|
+ versions = "[10.1.0,)"
|
|
|
+ // later versions of akka-http expect streams to be provided
|
|
|
+ extraDependency 'com.typesafe.akka:akka-stream_2.12:2.5.11'
|
|
|
+ }
|
|
|
+ //There is no akka-http 10.0.x series for scala 2.13
|
|
|
+ pass {
|
|
|
+ group = 'com.typesafe.akka'
|
|
|
+ module = 'akka-http_2.13'
|
|
|
+ versions = "[10.1.8,)"
|
|
|
+ // later versions of akka-http expect streams to be provided
|
|
|
+ extraDependency 'com.typesafe.akka:akka-stream_2.13:2.5.23'
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
dependencies {
|
|
|
- compileOnly group: 'com.typesafe.akka', name: 'akka-http_2.11', version: '10.0.0'
|
|
|
+ compileOnly group: 'com.typesafe.akka', name: 'akka-http_2.11', version: '10.0.0'
|
|
|
|
|
|
- implementation project(':auto-tooling')
|
|
|
- implementation deps.autoservice
|
|
|
- annotationProcessor deps.autoservice
|
|
|
+ implementation project(':javaagent-tooling')
|
|
|
+ implementation deps.autoservice
|
|
|
+ annotationProcessor deps.autoservice
|
|
|
|
|
|
- testImplementation group: 'com.typesafe.akka', name: 'akka-http_2.11', version: '10.0.0'
|
|
|
- testImplementation group: 'com.squareup.okhttp3', name: 'okhttp', version: '3.6.0'
|
|
|
+ testImplementation group: 'com.typesafe.akka', name: 'akka-http_2.11', version: '10.0.0'
|
|
|
+ testImplementation group: 'com.squareup.okhttp3', name: 'okhttp', version: '3.6.0'
|
|
|
|
|
|
- lagomTestImplementation project(':instrumentation:akka-http-10.0')
|
|
|
+ lagomTestImplementation project(':instrumentation:akka-http-10.0')
|
|
|
|
|
|
- lagomTestImplementation group: 'com.lightbend.lagom', name: 'lagom-javadsl-testkit_2.11', version: '1.4.0'
|
|
|
+ lagomTestImplementation group: 'com.lightbend.lagom', name: 'lagom-javadsl-testkit_2.11', version: '1.4.0'
|
|
|
|
|
|
- // There are some internal API changes in 10.1 that we would like to test separately for
|
|
|
- version101TestImplementation group: 'com.typesafe.akka', name: 'akka-http_2.11', version: '10.1.0'
|
|
|
- version101TestImplementation group: 'com.typesafe.akka', name: 'akka-stream_2.11', version: '2.5.11'
|
|
|
+ // There are some internal API changes in 10.1 that we would like to test separately for
|
|
|
+ version101TestImplementation group: 'com.typesafe.akka', name: 'akka-http_2.11', version: '10.1.0'
|
|
|
+ version101TestImplementation group: 'com.typesafe.akka', name: 'akka-stream_2.11', version: '2.5.11'
|
|
|
|
|
|
- latestDepTestImplementation group: 'com.typesafe.akka', name: 'akka-http_2.11', version: '+'
|
|
|
- latestDepTestImplementation group: 'com.typesafe.akka', name: 'akka-stream_2.11', version: '+'
|
|
|
+ latestDepTestImplementation group: 'com.typesafe.akka', name: 'akka-http_2.11', version: '+'
|
|
|
+ latestDepTestImplementation group: 'com.typesafe.akka', name: 'akka-stream_2.11', version: '+'
|
|
|
}
|
|
|
|
|
|
test.dependsOn lagomTest
|
|
|
test.dependsOn version101Test
|
|
|
|
|
|
compileVersion101TestGroovy {
|
|
|
- classpath = classpath.plus(files(compileVersion101TestScala.destinationDir))
|
|
|
- dependsOn compileVersion101TestScala
|
|
|
+ classpath = classpath.plus(files(compileVersion101TestScala.destinationDir))
|
|
|
+ dependsOn compileVersion101TestScala
|
|
|
}
|
|
|
|
|
|
compileLatestDepTestGroovy {
|
|
|
- classpath = classpath.plus(files(compileLatestDepTestScala.destinationDir))
|
|
|
- dependsOn compileLatestDepTestScala
|
|
|
+ classpath = classpath.plus(files(compileLatestDepTestScala.destinationDir))
|
|
|
+ dependsOn compileLatestDepTestScala
|
|
|
}
|
|
|
|
|
|
// Lagom test supports running only on java 8 for now.
|
|
@@ -110,8 +110,8 @@ compileLatestDepTestGroovy {
|
|
|
// does not work currently with custom source sets.
|
|
|
// They all use the same constraints as the main test source set.
|
|
|
lagomTest {
|
|
|
- onlyIf {
|
|
|
- String java8Home = findJavaHome(JavaVersion.VERSION_1_8)
|
|
|
- java8Home != null && executable == toExecutable(java8Home)
|
|
|
- }
|
|
|
+ onlyIf {
|
|
|
+ String java8Home = findJavaHome(JavaVersion.VERSION_1_8)
|
|
|
+ java8Home != null && executable == toExecutable(java8Home)
|
|
|
+ }
|
|
|
}
|