From b05a80ee178ecde7af5829495848c7034a68989b Mon Sep 17 00:00:00 2001 From: kenji yoshida <6b656e6a69@gmail.com> Date: Mon, 23 Jan 2023 07:59:19 +0900 Subject: [PATCH] use ScalaNativeJUnitPlugin --- build.sbt | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/build.sbt b/build.sbt index d3fa7fba..35a49e2e 100644 --- a/build.sbt +++ b/build.sbt @@ -133,9 +133,6 @@ lazy val compat = new MultiScalaCrossProject( ).jsEnablePlugins(ScalaJSJUnitPlugin), _.nativeSettings( nativeLinkStubs := true, - addCompilerPlugin( - "org.scala-native" % "junit-plugin" % nativeVersion cross CrossVersion.full - ), mimaPreviousArtifacts := (CrossVersion.partialVersion(scalaVersion.value) match { case Some((3, 1)) => mimaPreviousArtifacts.value.filter(_.revision != "2.6.0") case _ => mimaPreviousArtifacts.value @@ -149,9 +146,9 @@ lazy val compat = new MultiScalaCrossProject( jsAndNativeSourcesParent / "scala-2.11_2.12" } }, - libraryDependencies += "org.scala-native" %%% "junit-runtime" % nativeVersion, + versionPolicyIntention := Compatibility.None, Test / fork := false // Scala Native cannot run forked tests - ) + ).nativeEnablePlugins(ScalaNativeJUnitPlugin) ) val compat211 = compat(Seq(JSPlatform, JVMPlatform, NativePlatform), scala211)