@@ -22,7 +22,7 @@ import mill.api.BuildCtx
2222
2323import java.util.Base64
2424
25- val scalaVersions: Seq[String] = Seq("3.3.7 ", "2.13.18")
25+ val scalaVersions: Seq[String] = Seq("3.3.8 ", "2.13.18")
2626val jvmScalaVersions: Seq[String] = scalaVersions ++ Seq("2.12.21")
2727val stackSize = "100m"
2828val stackSizekBytes = 100 * 1024
@@ -85,7 +85,10 @@ trait SjsonnetCrossModule extends CrossScalaModule with ScalafmtModule {
8585 ) ++ (if (scalaVersion().startsWith("2.13"))
8686 Seq("-Wopt", "-Wconf:origin=scala.collection.compat.*:s")
8787 else Seq("-Xfatal-warnings", "-Ywarn-unused:-nowarn"))
88- else Seq[String]("-Wconf:origin=scala.collection.compat.*:s", "-Xlint:all")
88+ else Seq[String](
89+ "-Wconf:origin=scala.collection.compat.*:s",
90+ "-Xlint:all"
91+ )
8992 )
9093 def scalaDocOptions =
9194 super.scalaDocOptions().filterNot(o => o == "-Werror" || o == "-Xfatal-warnings")
@@ -375,7 +378,8 @@ object sjsonnet extends VersionFileModule {
375378 def forkArgs =
376379 Seq("-Xss" + stackSize, "--enable-native-access=ALL-UNNAMED")
377380
378- def scalacOptions = super.scalacOptions() ++ Seq("-release", "17")
381+ def scalacOptions = super.scalacOptions() ++ Seq("-release", "17") ++
382+ (if (JvmWorkerUtil.isScala3(scalaVersion())) Seq("-Yfuture-lazy-vals") else Seq.empty)
379383 def javacOptions = super.javacOptions() ++ Seq("--release", "17")
380384
381385 def mvnDeps = super.mvnDeps() ++ Seq(
@@ -400,7 +404,8 @@ object sjsonnet extends VersionFileModule {
400404 def artifactName = "sjsonnet-server"
401405 def scalaVersion = SjsonnnetJvmModule.this.crossValue
402406 def moduleDeps = Seq(SjsonnnetJvmModule.this, client)
403- def scalacOptions = super.scalacOptions() ++ Seq("-release", "17", "-deprecation", "-Werror")
407+ def scalacOptions = super.scalacOptions() ++ Seq("-release", "17", "-deprecation", "-Werror") ++
408+ (if (JvmWorkerUtil.isScala3(scalaVersion())) Seq("-Yfuture-lazy-vals") else Seq.empty)
404409 def javacOptions = super.javacOptions() ++ Seq("--release", "17")
405410
406411 override def prependShellScript = mill.util.Jvm.universalScript(
0 commit comments