@@ -8,6 +8,7 @@ val Scala213 = "2.13.8"
88val Scala30 = " 3.0.2"
99val Scala31 = " 3.1.3"
1010val Scala33 = " 3.3.0"
11+ val Scala331 = " 3.3.1"
1112
1213enablePlugins(OtherPlugin )
1314
@@ -17,7 +18,8 @@ crossScalaVersions := Seq(
1718 Scala213 ,
1819 Scala30 ,
1920 Scala31 ,
20- Scala33
21+ Scala33 ,
22+ Scala331
2123)
2224
2325tpolecatDevModeOptions ++= Set (
@@ -210,6 +212,28 @@ val Scala33Options =
210212 " -source" ,
211213 " 3.0-migration"
212214 )
215+ val Scala331Options =
216+ Seq (
217+ " -encoding" ,
218+ " utf8" ,
219+ " -deprecation" ,
220+ " -feature" ,
221+ " -unchecked" ,
222+ " -language:experimental.macros" ,
223+ " -language:higherKinds" ,
224+ " -language:implicitConversions" ,
225+ " -Ykind-projector" ,
226+ " -Wvalue-discard" ,
227+ " -Wnonunit-statement" ,
228+ " -Wunused:implicits" ,
229+ " -Wunused:explicits" ,
230+ " -Wunused:imports" ,
231+ " -Wunused:locals" ,
232+ " -Wunused:params" ,
233+ " -Wunused:privates" ,
234+ " -source" ,
235+ " 3.0-migration"
236+ )
213237
214238TaskKey [Unit ](" checkDevMode" ) := {
215239 val scalaV = scalaVersion.value
@@ -221,6 +245,7 @@ TaskKey[Unit]("checkDevMode") := {
221245 case Scala30 => Scala30Options
222246 case Scala31 => Scala31Options
223247 case Scala33 => Scala33Options
248+ case Scala331 => Scala331Options
224249 }
225250
226251 val actualOptions = scalacOptions.value
@@ -238,6 +263,7 @@ TaskKey[Unit]("checkVerboseMode") := {
238263 case Scala30 => Scala30Options ++ Seq (" -explain" )
239264 case Scala31 => Scala31Options ++ Seq (" -explain" )
240265 case Scala33 => Scala33Options ++ Seq (" -explain" )
266+ case Scala331 => Scala331Options ++ Seq (" -explain" )
241267 }
242268
243269 val actualOptions = scalacOptions.value
@@ -255,6 +281,7 @@ TaskKey[Unit]("checkCiMode") := {
255281 case Scala30 => Scala30Options ++ Seq (" -Xfatal-warnings" )
256282 case Scala31 => Scala31Options ++ Seq (" -Xfatal-warnings" )
257283 case Scala33 => Scala33Options ++ Seq (" -Xfatal-warnings" )
284+ case Scala331 => Scala331Options ++ Seq (" -Xfatal-warnings" )
258285 }
259286
260287 val actualOptions = scalacOptions.value
@@ -293,9 +320,10 @@ TaskKey[Unit]("checkReleaseMode") := {
293320 " -Ybackend-parallelism" ,
294321 " 8"
295322 )
296- case Scala30 => Scala30Options ++ fatalWarnings ++ releaseOptions
297- case Scala31 => Scala31Options ++ fatalWarnings ++ releaseOptions
298- case Scala33 => Scala33Options ++ fatalWarnings ++ releaseOptions
323+ case Scala30 => Scala30Options ++ fatalWarnings ++ releaseOptions
324+ case Scala31 => Scala31Options ++ fatalWarnings ++ releaseOptions
325+ case Scala33 => Scala33Options ++ fatalWarnings ++ releaseOptions
326+ case Scala331 => Scala331Options ++ fatalWarnings ++ releaseOptions
299327 }
300328
301329 val actualOptions = scalacOptions.value
0 commit comments