Fix broken test and warnings
This commit is contained in:
parent
178f778f9c
commit
221b067126
@ -22,13 +22,17 @@ configurations {
|
||||
testImplementation.extendsFrom compileOnly
|
||||
}
|
||||
|
||||
tasks.withType(ScalaCompile).configureEach {
|
||||
scalaCompileOptions.additionalParameters = ["-release:${JavaVersion.current()}".toString()]
|
||||
}
|
||||
|
||||
tasks.register('scalaTest', JavaExec) {
|
||||
dependsOn['testClasses']
|
||||
mainClass = 'org.scalatest.tools.Runner'
|
||||
args = ['-R', 'build/classes/scala/test', '-o']
|
||||
jvmArgs = ["--add-exports=java.base/sun.nio.ch=ALL-UNNAMED"] // https://lists.apache.org/thread/p1yrwo126vjx5tht82cktgjbmm2xtpw9
|
||||
classpath = sourceSets.test.runtimeClasspath
|
||||
}
|
||||
|
||||
test.dependsOn scalaTest
|
||||
|
||||
jar {
|
||||
|
@ -10,3 +10,4 @@ projectGroup=com.barrelsofdata.sparkexamples
|
||||
projectVersion=1.0
|
||||
|
||||
org.gradle.daemon=false
|
||||
org.gradle.warning.mode=all
|
Loading…
Reference in New Issue
Block a user