1
- import sbtcrossproject .CrossType
2
- import sbtcrossproject .CrossPlugin .autoImport .crossProject
3
- import ScalaModulePlugin ._
4
-
5
- crossScalaVersions in ThisBuild := List (" 2.12.9" , " 2.13.0" )
1
+ import sbtcrossproject .CrossPlugin .autoImport .{crossProject , CrossType }
6
2
7
3
lazy val configSettings : Seq [Setting [_]] = Seq (
8
4
unmanagedSourceDirectories ++= {
@@ -27,14 +23,10 @@ lazy val xml = crossProject(JSPlatform, JVMPlatform)
27
23
.withoutSuffixFor(JVMPlatform )
28
24
.crossType(CrossType .Full )
29
25
.in(file(" ." ))
30
- .settings(scalaModuleSettings)
31
- .jvmSettings(scalaModuleSettingsJVM)
32
- .jvmSettings(
33
- crossScalaVersions += " 0.17.0-RC1"
34
- )
26
+ .settings(ScalaModulePlugin .scalaModuleSettings)
27
+ .jvmSettings(ScalaModulePlugin .scalaModuleSettingsJVM)
35
28
.settings(
36
29
name := " scala-xml" ,
37
- version := " 2.0.0-SNAPSHOT" ,
38
30
39
31
scalacOptions ++= {
40
32
val opts =
@@ -49,7 +41,7 @@ lazy val xml = crossProject(JSPlatform, JVMPlatform)
49
41
50
42
scalacOptions in Test += " -Xxml:coalescing" ,
51
43
52
- mimaPreviousVersion := {
44
+ scalaModuleMimaPreviousVersion := {
53
45
if (System .getenv(" SCALAJS_VERSION" ) == " 1.0.0-M8" ) None // No such release yet
54
46
else Some (" 1.2.0" )
55
47
},
@@ -103,7 +95,9 @@ lazy val xml = crossProject(JSPlatform, JVMPlatform)
103
95
exclude[IncompatibleResultTypeProblem ](" scala.xml.parsing.FactoryAdapter.hStack" ),
104
96
exclude[IncompatibleResultTypeProblem ](" scala.xml.parsing.FactoryAdapter.scopeStack" ),
105
97
exclude[IncompatibleResultTypeProblem ](" scala.xml.parsing.FactoryAdapter.attribStack" ),
106
- exclude[IncompatibleResultTypeProblem ](" scala.xml.parsing.FactoryAdapter.tagStack" )
98
+ exclude[IncompatibleResultTypeProblem ](" scala.xml.parsing.FactoryAdapter.tagStack" ),
99
+ // New MiMa checks for generic signature changes
100
+ exclude[IncompatibleSignatureProblem ](" *" ),
107
101
)
108
102
},
109
103
@@ -154,6 +148,3 @@ lazy val xml = crossProject(JSPlatform, JVMPlatform)
154
148
fork in Test := false
155
149
)
156
150
.jsConfigure(_.enablePlugins(ScalaJSJUnitPlugin ))
157
-
158
- lazy val xmlJVM = xml.jvm
159
- lazy val xmlJS = xml.js
0 commit comments