File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -43,7 +43,6 @@ lazy val kindProjector = "org.typelevel" % "kind-projector" % "0.13.4" cross Cro
4343
4444lazy val buildSettings = Seq (
4545 scalacOptions ++= Seq (
46- " -release:8" ,
4746 " -encoding" ,
4847 " UTF-8" ,
4948 " -feature" ,
@@ -133,10 +132,31 @@ lazy val scalaNativeSettings = Seq(
133132 tlMimaPreviousVersions := Set .empty
134133)
135134
136- lazy val monocleSettings = buildSettings
137- lazy val monocleJvmSettings = monocleSettings
138- lazy val monocleJsSettings = monocleSettings ++ scalajsSettings
139- lazy val monocleNativeSettings = monocleSettings ++ scalaNativeSettings
135+ lazy val defaultReleaseOption = " -release:8"
136+
137+ lazy val monocleSettings = buildSettings
138+ lazy val monocleJvmSettings = monocleSettings ++ Seq (
139+ scalacOptions ++= {
140+ if (scalaVersion.value.startsWith(" 3.3." )) {
141+ Seq (
142+ " -Yfuture-lazy-vals" ,
143+ " -release:11"
144+ )
145+ } else if (scalaBinaryVersion.value == " 3" ) {
146+ Nil
147+ } else {
148+ Seq (
149+ defaultReleaseOption
150+ )
151+ }
152+ }
153+ )
154+ lazy val monocleJsSettings = monocleSettings ++ scalajsSettings ++ Seq (
155+ scalacOptions += defaultReleaseOption
156+ )
157+ lazy val monocleNativeSettings = monocleSettings ++ scalaNativeSettings ++ Seq (
158+ scalacOptions += defaultReleaseOption
159+ )
140160
141161lazy val root = tlCrossRootProject.aggregate(
142162 core,
You can’t perform that action at this time.
0 commit comments