File tree Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -89,13 +89,24 @@ val commonSettings = Def.settings(
89
89
scalacOptions ++= PartialFunction
90
90
.condOpt(CrossVersion .partialVersion(scalaVersion.value)) { case Some ((2 , _)) =>
91
91
unusedWarnings ++ Seq (
92
- " -Wconf:cat=scala3-migration&msg=constructor modifiers are assumed by synthetic:info" ,
93
- " -Xsource:3" ,
94
92
" -Xlint" ,
95
93
)
96
94
}
97
95
.toList
98
96
.flatten,
97
+ scalacOptions ++= PartialFunction
98
+ .condOpt(CrossVersion .partialVersion(scalaVersion.value)) {
99
+ case Some ((2 , 13 )) =>
100
+ Seq (
101
+ " -Xsource:3-cross" ,
102
+ )
103
+ case Some ((2 , 12 )) =>
104
+ Seq (
105
+ " -Xsource:3" ,
106
+ )
107
+ }
108
+ .toList
109
+ .flatten,
99
110
scalacOptions ++= PartialFunction
100
111
.condOpt(CrossVersion .partialVersion(scalaVersion.value)) {
101
112
case Some ((2 , v)) if v <= 12 =>
You can’t perform that action at this time.
0 commit comments