release flag 11 instead of 9, #26381

Otherwise there are compilation errors for the
CompileJdk9 sources in some environments
This commit is contained in:
Patrik Nordwall 2019-02-21 16:46:29 +01:00 committed by Johan Andrén
parent ea8e3ace33
commit cd52f05d3c

View file

@ -31,8 +31,8 @@ object Jdk9 extends AutoPlugin {
(Compile / sourceDirectory).value / SCALA_SOURCE_DIRECTORY,
(Compile / sourceDirectory).value / JAVA_SOURCE_DIRECTORY
))),
scalacOptions := AkkaBuild.DefaultScalacOptions ++ notOnJdk8(notOnScala211(scalaBinaryVersion.value, Seq("-release", "9"))),
javacOptions := AkkaBuild.DefaultJavacOptions ++ notOnJdk8(notOnScala211(scalaBinaryVersion.value, Seq("--release", "9")))
scalacOptions := AkkaBuild.DefaultScalacOptions ++ notOnJdk8(notOnScala211(scalaBinaryVersion.value, Seq("-release", "11"))),
javacOptions := AkkaBuild.DefaultJavacOptions ++ notOnJdk8(notOnScala211(scalaBinaryVersion.value, Seq("--release", "11")))
)
val compileSettings = Seq(