From 5486a2206c5c641f07c794848e22f960dd68ba8f Mon Sep 17 00:00:00 2001 From: Philippus Date: Sun, 9 May 2021 20:22:12 +0200 Subject: [PATCH 1/2] Fix compile/skip and libraryDependencies for scala native --- build.sbt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build.sbt b/build.sbt index 01a26cdf..d2e3adca 100644 --- a/build.sbt +++ b/build.sbt @@ -89,10 +89,10 @@ lazy val parserCombinators = crossProject(JVMPlatform, JSPlatform, NativePlatfor ) .jsConfigure(_.enablePlugins(ScalaJSJUnitPlugin)) .nativeSettings( - compile / skip := System.getProperty("java.version").startsWith("1.6") || !scalaVersion.value.startsWith("3"), + compile / skip := System.getProperty("java.version").startsWith("1.6") || !scalaVersion.value.startsWith("2"), test := {}, libraryDependencies := { - if (!scalaVersion.value.startsWith("3")) + if (!scalaVersion.value.startsWith("2")) libraryDependencies.value.filterNot(_.organization == "org.scala-native") else libraryDependencies.value } From 4cfc0f4eec5485368af7615e2a5545a9c17380fe Mon Sep 17 00:00:00 2001 From: Philippus Date: Thu, 13 May 2021 19:15:43 +0200 Subject: [PATCH 2/2] Disable MiMa for scala native --- build.sbt | 1 + 1 file changed, 1 insertion(+) diff --git a/build.sbt b/build.sbt index d2e3adca..7d3936ea 100644 --- a/build.sbt +++ b/build.sbt @@ -89,6 +89,7 @@ lazy val parserCombinators = crossProject(JVMPlatform, JSPlatform, NativePlatfor ) .jsConfigure(_.enablePlugins(ScalaJSJUnitPlugin)) .nativeSettings( + scalaModuleMimaPreviousVersion := None, // https://github.com/scala/scala-parser-combinators/pull/381 compile / skip := System.getProperty("java.version").startsWith("1.6") || !scalaVersion.value.startsWith("2"), test := {}, libraryDependencies := {