Skip to content

Commit c61ce2b

Browse files
committed
Fix native MiMa tests
1 parent ab1ccf0 commit c61ce2b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

build.sbt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,10 @@ lazy val compat = new MultiScalaCrossProject(
118118
addCompilerPlugin(
119119
"org.scala-native" % "junit-plugin" % nativeVersion cross CrossVersion.full
120120
),
121+
mimaPreviousArtifacts := (CrossVersion.partialVersion(scalaVersion.value) match {
122+
case Some((3, 1)) => mimaPreviousArtifacts.value.filter(_.revision != "2.6.0")
123+
case _ => mimaPreviousArtifacts.value
124+
}),
121125
libraryDependencies += "org.scala-native" %%% "junit-runtime" % nativeVersion,
122126
Test / fork := false // Scala Native cannot run forked tests
123127
)

0 commit comments

Comments
 (0)