@@ -30,9 +30,9 @@ lazy val root = project
30
30
compat213JVM,
31
31
compat213JS,
32
32
compat213Native,
33
- compat30JVM ,
34
- compat30JS ,
35
- compat31Native ,
33
+ compat3JVM ,
34
+ compat3JS ,
35
+ compat3Native ,
36
36
scalafixData211,
37
37
scalafixData212,
38
38
scalafixData213,
@@ -53,8 +53,7 @@ lazy val junit = libraryDependencies += "com.github.sbt" % "junit-interface" % "
53
53
lazy val scala211 = " 2.11.12"
54
54
lazy val scala212 = " 2.12.16"
55
55
lazy val scala213 = " 2.13.8"
56
- lazy val scala30 = " 3.0.2"
57
- lazy val scala31 = " 3.1.3"
56
+ lazy val scala3 = " 3.1.3"
58
57
59
58
lazy val compat = new MultiScalaCrossProject (
60
59
" compat" ,
@@ -158,8 +157,7 @@ lazy val compat = new MultiScalaCrossProject(
158
157
val compat211 = compat(Seq (JSPlatform , JVMPlatform , NativePlatform ), scala211)
159
158
val compat212 = compat(Seq (JSPlatform , JVMPlatform , NativePlatform ), scala212)
160
159
val compat213 = compat(Seq (JSPlatform , JVMPlatform , NativePlatform ), scala213)
161
- val compat30 = compat(Seq (JSPlatform , JVMPlatform ), scala30)
162
- val compat31 = compat(Seq (JVMPlatform , NativePlatform ), scala31)
160
+ val compat3 = compat(Seq (JSPlatform , JVMPlatform , NativePlatform ), scala3)
163
161
164
162
lazy val compat211JVM = compat211.jvm
165
163
lazy val compat211JS = compat211.js
@@ -170,9 +168,9 @@ lazy val compat212Native = compat212.native
170
168
lazy val compat213JVM = compat213.jvm
171
169
lazy val compat213JS = compat213.js
172
170
lazy val compat213Native = compat213.native
173
- lazy val compat30JVM = compat30 .jvm
174
- lazy val compat30JS = compat30 .js
175
- lazy val compat31Native = compat31 .native
171
+ lazy val compat3JVM = compat3 .jvm
172
+ lazy val compat3JS = compat3 .js
173
+ lazy val compat3Native = compat3 .native
176
174
177
175
lazy val binaryCompatOld = project
178
176
.in(file(" binary-compat/old" ))
@@ -335,8 +333,7 @@ lazy val scalafixTests = project
335
333
.enablePlugins(BuildInfoPlugin , ScalafixTestkitPlugin )
336
334
337
335
val ciScalaVersion = sys.env.get(" CI_SCALA_VERSION" ).flatMap(Version .parse)
338
- val isScalaJs = sys.env.get(" CI_PLATFORM" ) == Some (" js" )
339
- val isScalaNative = sys.env.get(" CI_PLATFORM" ) == Some (" native" )
336
+ val ciPlatform = sys.env.get(" CI_PLATFORM" ).map(p => if (p == " JVM" ) " " else p)
340
337
val isScalafix = sys.env.get(" CI_MODE" ) == Some (" testScalafix" )
341
338
val isScalafmt = sys.env.get(" CI_MODE" ) == Some (" testScalafmt" )
342
339
val isBinaryCompat = sys.env.get(" CI_MODE" ) == Some (" testBinaryCompat" )
@@ -370,9 +367,7 @@ inThisBuild {
370
367
).foreach(k =>
371
368
println(k.padTo(20 , " " ).mkString(" " ) + " -> " + sys.env.getOrElse(k, " None" )))
372
369
373
- val platformSuffix = if (isScalaJs) " JS" else if (isScalaNative) " Native" else " "
374
-
375
- val compatProject = s " compat ${ciScalaVersion.get}$platformSuffix"
370
+ val compatProject = s " compat ${ciScalaVersion.get}${ciPlatform.get}"
376
371
val binaryCompatProject = " binaryCompat"
377
372
378
373
val testProjectPrefix =
0 commit comments