1
- ThisBuild / scalaVersion := " 3.3.4 "
1
+ ThisBuild / scalaVersion := " 3.3.5 "
2
2
ThisBuild / crossScalaVersions := Seq ((ThisBuild / scalaVersion).value, " 2.13.16" )
3
3
4
4
lazy val root = project.in(file(" ." ))
@@ -18,12 +18,14 @@ lazy val collectionContrib = crossProject(JVMPlatform, JSPlatform, NativePlatfor
18
18
name := " scala-collection-contrib" ,
19
19
versionPolicyIntention := Compatibility .None ,
20
20
scalaModuleAutomaticModuleName := Some (" scala.collection.contrib" ),
21
+ Compile / compile / scalacOptions ++= Seq (
22
+ " -Werror" ,
23
+ " -Wnonunit-statement" ,
24
+ " -Wconf:origin=scala.collection.IterableOps.toIterable:s" , // internal usage; annotating @nowarn is clutter
25
+ ),
21
26
Compile / compile / scalacOptions ++= {
22
27
CrossVersion .partialVersion(scalaVersion.value) match {
23
28
case Some ((2 , _)) => Seq (
24
- " -Wconf:origin=scala.collection.IterableOps.toIterable:s" , // internal usage; annotating @nowarn is clutter
25
- " -Werror" ,
26
- " -Wnonunit-statement" ,
27
29
" -Wopt" ,
28
30
" -opt:inline:<sources>" ,
29
31
" -opt:inline:scala.util.package$chaining$,scala.util.ChainingSyntax,scala.util.ChainingOps$" ,
@@ -32,10 +34,7 @@ lazy val collectionContrib = crossProject(JVMPlatform, JSPlatform, NativePlatfor
32
34
" -Xsource:3-cross" ,
33
35
)
34
36
case _ => Seq (
35
- " -Wconf:cat=deprecation:s" , // Scala 3 lacks origin, src arrives in 3.3.4 & 3.5
36
37
" -Wconf:id=E175:s" ,
37
- " -Werror" ,
38
- " -Wnonunit-statement" , // warns on uni-limbed if
39
38
)
40
39
}
41
40
},
0 commit comments