Don't compile ScalaTests on Java 7

This commit is contained in:
str4d
2017-12-09 12:42:52 +00:00
parent 578656021e
commit 46a342180d
2 changed files with 14 additions and 8 deletions

View File

@@ -31,9 +31,6 @@ sourceSets {
include 'net/i2p/crypto/eddsa/math/baseDblPrecmp'
include 'net/i2p/crypto/eddsa/math/basePrecmp'
}
scala {
srcDir 'java/test/scalatest'
}
}
}
@@ -46,6 +43,13 @@ dependencies {
}
if (JavaVersion.current() != JavaVersion.VERSION_1_7) {
sourceSets {
test {
scala {
srcDir 'java/test/scalatest'
}
}
}
task scalaTest(dependsOn: ['testClasses'], type: JavaExec) {
main = 'org.scalatest.tools.Runner'
args = ['-R', 'build/classes/scala/test', '-o']