@@ -32,6 +32,7 @@ lazy val xml = crossProject(JSPlatform, JVMPlatform, NativePlatform)
3232 .jvmSettings(ScalaModulePlugin .scalaModuleOsgiSettings)
3333 .settings(
3434 name := " scala-xml" ,
35+ scalaModuleAutomaticModuleName := Some (" scala.xml" ),
3536 scalacOptions ++= (CrossVersion .partialVersion(scalaVersion.value) match {
3637 case Some ((3 , _)) =>
3738 Seq (" -language:Scala2" )
@@ -55,6 +56,7 @@ lazy val xml = crossProject(JSPlatform, JVMPlatform, NativePlatform)
5556 |additional information regarding copyright ownership.
5657 | """ .stripMargin)),
5758
59+ // Note: See discussion on Mima in https://github.com/scala/scala-xml/pull/517
5860 scalaModuleMimaPreviousVersion := (CrossVersion .partialVersion(scalaVersion.value) match {
5961 // pending resolution of https://github.com/scalacenter/sbt-version-policy/issues/62
6062 case Some ((3 , _)) => None
@@ -65,8 +67,12 @@ lazy val xml = crossProject(JSPlatform, JVMPlatform, NativePlatform)
6567 import com .typesafe .tools .mima .core ._
6668 import com .typesafe .tools .mima .core .ProblemFilters ._
6769 Seq (
70+ // Deprecated in 2.0.0-RC2
71+ exclude[MissingClassProblem ](" scala.xml.factory.LoggedNodeFactory" ),
72+ exclude[DirectMissingMethodProblem ](" scala.xml.parsing.MarkupHandler.log" ),
6873 // because we reverted #279
6974 exclude[DirectMissingMethodProblem ](" scala.xml.Utility.escapeText" ),
75+ exclude[MissingClassProblem ](" scala.xml.Properties*" ),
7076 // afaict this is just a JDK 8 vs 16 difference, producing a false positive when
7177 // we compare classes built on JDK 16 (which we only do on CI, not at release time)
7278 // to previous-version artifacts that were built on 8. see scala/scala-xml#501
@@ -121,7 +127,6 @@ lazy val xml = crossProject(JSPlatform, JVMPlatform, NativePlatform)
121127 )
122128 .jsConfigure(_.enablePlugins(ScalaJSJUnitPlugin ))
123129 .nativeSettings(
124- scalaModuleMimaPreviousVersion := None , // No such release yet
125130 // Scala Native cannot run forked tests
126131 Test / fork := false ,
127132 libraryDependencies += " org.scala-native" %%% " junit-runtime" % nativeVersion % Test ,
0 commit comments