Skip to content

Commit 0440105

Browse files
committed
Disable scalafix in prePR for Scala 3
1 parent 34843f8 commit 0440105

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

build.sbt

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,11 @@ val prePR_nonCross = taskKey[Unit]("Performs all necessary work required before
144144
ThisBuild / prePR_nonCross := Def.sequential(
145145
root / clean,
146146
root / Compile / scalafmt,
147-
root / Compile / compile,
148-
(root / Compile / scalafix).toTask(""),
147+
Def.taskDyn {
148+
if (scalaVersion.value.startsWith("2."))
149+
(root / Compile / scalafix).toTask("")
150+
else
151+
Def.task(())
152+
},
149153
example / Compile / compile,
150154
).value

0 commit comments

Comments
 (0)