Skip to content

Commit

Permalink
Use Scala Native JUnit plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
armanbilge committed Jul 6, 2022
1 parent 79c8e5d commit 6030681
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -124,21 +124,7 @@ def configureJUnit(crossProject: CrossProject) = {
libraryDependencies +=
"com.novocode" % "junit-interface" % "0.11" % "test"
)
.nativeSettings(
libraryDependencies += "org.scala-native" %%% "junit-runtime" % nativeVersion,
addCompilerPlugin("org.scala-native" % "junit-plugin" % nativeVersion cross CrossVersion.full),
pomPostProcess := { node =>
import scala.xml._
import scala.xml.transform._
new RuleTransformer(new RewriteRule{
override def transform(n: Node) =
if (n.label == "dependency" && (n \ "artifactId").text.startsWith("junit-runtime_native"))
NodeSeq.Empty
else
n
}).transform(node)(0)
},
)
.nativeConfigure(_.enablePlugins(ScalaNativeJUnitPlugin))
}

lazy val commonJsSettings = Seq(
Expand Down

0 comments on commit 6030681

Please sign in to comment.