forked from I2P_Developers/i2p.i2p
Don't run ScalaTests on Java 7
This commit is contained in:
@@ -27,12 +27,14 @@ dependencies {
|
|||||||
testCompile 'org.scalatest:scalatest_2.12:3.0.4'
|
testCompile 'org.scalatest:scalatest_2.12:3.0.4'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (JavaVersion.current() != JavaVersion.VERSION_1_7) {
|
||||||
task scalaTest(dependsOn: ['testClasses'], type: JavaExec) {
|
task scalaTest(dependsOn: ['testClasses'], type: JavaExec) {
|
||||||
main = 'org.scalatest.tools.Runner'
|
main = 'org.scalatest.tools.Runner'
|
||||||
args = ['-R', 'build/classes/scala/test', '-o']
|
args = ['-R', 'build/classes/scala/test', '-o']
|
||||||
classpath = sourceSets.test.runtimeClasspath
|
classpath = sourceSets.test.runtimeClasspath
|
||||||
}
|
}
|
||||||
test.dependsOn scalaTest
|
test.dependsOn scalaTest
|
||||||
|
}
|
||||||
|
|
||||||
jar {
|
jar {
|
||||||
manifest {
|
manifest {
|
||||||
|
|||||||
@@ -45,12 +45,14 @@ dependencies {
|
|||||||
testCompile 'org.scalatest:scalatest_2.12:3.0.4'
|
testCompile 'org.scalatest:scalatest_2.12:3.0.4'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (JavaVersion.current() != JavaVersion.VERSION_1_7) {
|
||||||
task scalaTest(dependsOn: ['testClasses'], type: JavaExec) {
|
task scalaTest(dependsOn: ['testClasses'], type: JavaExec) {
|
||||||
main = 'org.scalatest.tools.Runner'
|
main = 'org.scalatest.tools.Runner'
|
||||||
args = ['-R', 'build/classes/scala/test', '-o']
|
args = ['-R', 'build/classes/scala/test', '-o']
|
||||||
classpath = sourceSets.test.runtimeClasspath
|
classpath = sourceSets.test.runtimeClasspath
|
||||||
}
|
}
|
||||||
test.dependsOn scalaTest
|
test.dependsOn scalaTest
|
||||||
|
}
|
||||||
|
|
||||||
configurations {
|
configurations {
|
||||||
tests
|
tests
|
||||||
|
|||||||
Reference in New Issue
Block a user