diff --git a/zio-sbt-ecosystem/src/main/scala/zio/sbt/ScalaCompilerSettings.scala b/zio-sbt-ecosystem/src/main/scala/zio/sbt/ScalaCompilerSettings.scala index 43cf2c0d..97341a23 100644 --- a/zio-sbt-ecosystem/src/main/scala/zio/sbt/ScalaCompilerSettings.scala +++ b/zio-sbt-ecosystem/src/main/scala/zio/sbt/ScalaCompilerSettings.scala @@ -86,15 +86,12 @@ trait ScalaCompilerSettings { "-language:implicitConversions", "-Xignore-scala2-macros", "-noindent", - "-release", - javaPlatform + s"-release:$javaPlatform" ) case Some((2, 13)) => Seq( "-Ywarn-unused:params,-implicits", - "-release", - javaPlatform, - s"-target:$javaPlatform" + s"-release:$javaPlatform" ) ++ std2xOptions ++ optimizerOptions(optimize) case Some((2, 12)) => Seq(