1- import ScalaModulePlugin ._
2- import sbtcrossproject .crossProject
1+ import sbtcrossproject .CrossPlugin .autoImport .crossProject
32
4- crossScalaVersions in ThisBuild := List (" 2.12.8" , " 2.11.12" , " 2.13.0" )
5-
6- lazy val root = project.in(file(" ." ))
7- .aggregate(`scala-parser-combinatorsJS`, `scala-parser-combinatorsJVM`, `scala-parser-combinatorsNative`)
8- .settings(disablePublishing)
9-
10- lazy val `scala-parser-combinators` = crossProject(JSPlatform , JVMPlatform , NativePlatform ).
11- withoutSuffixFor(JVMPlatform ).in(file(" ." )).
12- settings(scalaModuleSettings : _* ).
13- jvmSettings(scalaModuleSettingsJVM).
14- settings(
3+ lazy val parserCombinators = crossProject(JVMPlatform , JSPlatform , NativePlatform )
4+ .withoutSuffixFor(JVMPlatform ).in(file(" ." ))
5+ .settings(ScalaModulePlugin .scalaModuleSettings)
6+ .jvmSettings(ScalaModulePlugin .scalaModuleSettingsJVM)
7+ .settings(
158 name := " scala-parser-combinators" ,
16- version := " 1.1.2-SNAPSHOT" ,
17- mimaPreviousVersion := Some (" 1.1.0" ).filter(_ => System .getenv(" SCALAJS_VERSION" ) != " 1.0.0" ),
9+
10+ scalaModuleMimaPreviousVersion := Some (" 1.1.0" ).filter(_ => System .getenv(" SCALAJS_VERSION" ) != " 1.0.0" ),
11+ mimaBinaryIssueFilters ++= {
12+ import com .typesafe .tools .mima .core ._
13+ import com .typesafe .tools .mima .core .ProblemFilters ._
14+ Seq (
15+ exclude[IncompatibleSignatureProblem ](" *" )
16+ )
17+ },
1818
1919 apiMappings += (scalaInstance.value.libraryJar ->
20- url(s " https://www.scala-lang.org/api/ ${scalaVersion.value}/ " )),
20+ url(s " https://www.scala-lang.org/api/ ${scalaVersion.value}/ " )),
2121
2222 scalacOptions in (Compile , doc) ++= Seq (
2323 " -diagrams" ,
@@ -38,18 +38,18 @@ lazy val `scala-parser-combinators` = crossProject(JSPlatform, JVMPlatform, Nati
3838 }
3939 }
4040 }
41- ).
42- jvmSettings(
41+ )
42+ . jvmSettings(
4343 OsgiKeys .exportPackage := Seq (s " scala.util.parsing.*;version= ${version.value}" ),
44- libraryDependencies += " junit" % " junit" % " 4.12 " % " test " ,
45- libraryDependencies += " com.novocode" % " junit-interface" % " 0.11" % " test "
46- ).
47- jsSettings(
44+ libraryDependencies += " junit" % " junit" % " 4.13 " % Test ,
45+ libraryDependencies += " com.novocode" % " junit-interface" % " 0.11" % Test
46+ )
47+ . jsSettings(
4848 // Scala.js cannot run forked tests
4949 fork in Test := false
50- ).
51- jsConfigure(_.enablePlugins(ScalaJSJUnitPlugin )).
52- nativeSettings(
50+ )
51+ . jsConfigure(_.enablePlugins(ScalaJSJUnitPlugin ))
52+ . nativeSettings(
5353 skip in compile := System .getProperty(" java.version" ).startsWith(" 1.6" ) || ! scalaVersion.value.startsWith(" 2.11" ),
5454 test := {},
5555 libraryDependencies := {
@@ -58,7 +58,3 @@ lazy val `scala-parser-combinators` = crossProject(JSPlatform, JVMPlatform, Nati
5858 else libraryDependencies.value
5959 }
6060 )
61-
62- lazy val `scala-parser-combinatorsJVM` = `scala-parser-combinators`.jvm
63- lazy val `scala-parser-combinatorsJS` = `scala-parser-combinators`.js
64- lazy val `scala-parser-combinatorsNative` = `scala-parser-combinators`.native
0 commit comments