Skip to content

Commit

Permalink
[WIP] #4597 Java 17 support
Browse files Browse the repository at this point in the history
  • Loading branch information
clairemcginty committed Nov 14, 2022
1 parent a4cf3f2 commit 9e407f0
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,16 @@ val commonSettings = Def
resolvers ++= Resolver.sonatypeOssRepos("public"),
Test / javaOptions += "-Dscio.ignoreVersionWarning=true",
Test / testOptions += Tests.Argument("-oD"),
Test / javaOptions ++= sys.props("java.version") match {
case v if v.startsWith("17.") =>
Seq(
"--add-opens",
"java.base/java.util=ALL-UNNAMED",
"--add-opens",
"java.base/java.lang.invoke=ALL-UNNAMED"
)
case _ => Seq.empty
},
testOptions += Tests.Argument(TestFrameworks.JUnit, "-q", "-v", "-a"),
testOptions ++= {
if (sys.env.contains("SLOW")) {
Expand Down

0 comments on commit 9e407f0

Please sign in to comment.