From a05549ef379ae97a54afbe45993ea2f444bbf7c7 Mon Sep 17 00:00:00 2001 From: Oliver <20188437+olivergrabinski@users.noreply.github.com> Date: Tue, 26 Sep 2023 14:35:52 +0200 Subject: [PATCH] JRE 17 test --- build.sbt | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/build.sbt b/build.sbt index 609fe4a147..3d160bb402 100755 --- a/build.sbt +++ b/build.sbt @@ -913,7 +913,7 @@ lazy val compilation = { Seq( scalaVersion := scalaCompilerVersion, scalacOptions ~= { options: Seq[String] => options.filterNot(Set("-Wself-implicit", "-Xlint:infer-any", "-Wnonunit-statement")) }, - javaSpecificationVersion := "11", + javaSpecificationVersion := "17", javacOptions ++= Seq( "-source", javaSpecificationVersion.value, @@ -977,12 +977,15 @@ lazy val servicePackaging = { else version.value }, Docker / daemonUser := "nexus", - dockerBaseImage := "eclipse-temurin:11-jre", + dockerBaseImage := "eclipse-temurin:17-jre", dockerBuildxPlatforms := Seq("linux/arm64/v8", "linux/amd64"), dockerExposedPorts := Seq(8080), dockerUsername := Some("bluebrain"), dockerUpdateLatest := false, - dockerChmodType := DockerChmodType.UserGroupWriteExecute + dockerChmodType := DockerChmodType.UserGroupWriteExecute, + dockerEnvVars := Map( + "JAVA_OPTS" -> "--add-exports=java.naming/com.sun.jndi.ldap=ALL-UNNAMED --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.lang.invoke=ALL-UNNAMED --add-opens=java.base/java.io=ALL-UNNAMED --add-opens=java.base/java.security=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.management/javax.management=ALL-UNNAMED --add-opens=java.naming/javax.naming=ALL-UNNAMED" + ) ) }