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'
|
||||
}
|
||||
|
||||
if (JavaVersion.current() != JavaVersion.VERSION_1_7) {
|
||||
task scalaTest(dependsOn: ['testClasses'], type: JavaExec) {
|
||||
main = 'org.scalatest.tools.Runner'
|
||||
args = ['-R', 'build/classes/scala/test', '-o']
|
||||
classpath = sourceSets.test.runtimeClasspath
|
||||
}
|
||||
test.dependsOn scalaTest
|
||||
}
|
||||
|
||||
jar {
|
||||
manifest {
|
||||
|
||||
@@ -45,12 +45,14 @@ dependencies {
|
||||
testCompile 'org.scalatest:scalatest_2.12:3.0.4'
|
||||
}
|
||||
|
||||
if (JavaVersion.current() != JavaVersion.VERSION_1_7) {
|
||||
task scalaTest(dependsOn: ['testClasses'], type: JavaExec) {
|
||||
main = 'org.scalatest.tools.Runner'
|
||||
args = ['-R', 'build/classes/scala/test', '-o']
|
||||
classpath = sourceSets.test.runtimeClasspath
|
||||
}
|
||||
test.dependsOn scalaTest
|
||||
}
|
||||
|
||||
configurations {
|
||||
tests
|
||||
|
||||
Reference in New Issue
Block a user