From 221b067126635ae4c7e2d1bf14758658eb387f5e Mon Sep 17 00:00:00 2001 From: karthik Date: Thu, 16 Mar 2023 15:53:42 +0100 Subject: [PATCH] Fix broken test and warnings --- build.gradle | 6 +++++- gradle.properties | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index f3952c9..fc4a044 100644 --- a/build.gradle +++ b/build.gradle @@ -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 { diff --git a/gradle.properties b/gradle.properties index 626e4fe..87a705f 100644 --- a/gradle.properties +++ b/gradle.properties @@ -10,3 +10,4 @@ projectGroup=com.barrelsofdata.sparkexamples projectVersion=1.0 org.gradle.daemon=false +org.gradle.warning.mode=all \ No newline at end of file