Fix broken test and warnings

This commit is contained in:
karthik 2023-03-16 15:53:42 +01:00
parent 178f778f9c
commit 221b067126
2 changed files with 6 additions and 1 deletions

View File

@ -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 {

View File

@ -10,3 +10,4 @@ projectGroup=com.barrelsofdata.sparkexamples
projectVersion=1.0
org.gradle.daemon=false
org.gradle.warning.mode=all