@@ -9,20 +9,20 @@ ThisBuild / licenses += (("Apache-2.0", url("https://www.apache.org/licenses/LIC
99ThisBuild / libraryDependencySchemes += " org.scala-js" %% " scalajs-library" % " semver-spec"
1010ThisBuild / apiURL := Some (url(" https://javadoc.io/doc/org.scala-lang.modules/scala-xml_2.13/" ))
1111
12- lazy val configSettings : Seq [Setting [_ ]] = Seq (
12+ lazy val configSettings : Seq [Setting [? ]] = Seq (
1313 unmanagedSourceDirectories ++= {
1414 unmanagedSourceDirectories.value.flatMap { dir =>
15- val sv = scalaVersion.value
16- Seq (
17- CrossVersion .partialVersion(sv) match {
18- case Some ((major , minor)) if major > 2 || (major == 2 && minor >= 13 ) => file(dir.getPath ++ " -2.13+ " )
19- case _ => file(dir.getPath ++ " -2.13- " )
20- },
21- CrossVersion .partialVersion(sv) match {
22- case Some (( 2 , _)) => file(dir.getPath ++ " -2.x " )
23- case _ => file(dir.getPath ++ " -3.x " )
24- }
25- )
15+ def forVersion ( version : String ) : File = file(dir.getPath ++ " - " ++ version)
16+ CrossVersion .partialVersion(scalaVersion.value) match {
17+ case Some (( 3 , _)) => Seq (forVersion( " 3 " ), forVersion( " 2.13+ " ))
18+ case Some ((2 , minor)) =>
19+ Seq (forVersion( " 2 " )) ++ (minor match {
20+ case 13 => Seq (forVersion( " 2.13 " ), forVersion( " 2.13+ " ))
21+ case 12 => Seq (forVersion( " 2.12 " ))
22+ case _ => Seq ( )
23+ } )
24+ case _ => Seq ()
25+ }
2626 }
2727 }
2828)
@@ -65,13 +65,21 @@ lazy val xml = crossProject(JSPlatform, JVMPlatform, NativePlatform)
6565 versionPolicyIntention := Compatibility .BinaryCompatible ,
6666 // Note: See discussion on non-JVM Mima in https://github.com/scala/scala-xml/pull/517
6767 mimaBinaryIssueFilters ++= {
68- import com .typesafe .tools .mima .core ._
69- import com .typesafe .tools .mima .core .ProblemFilters ._
70- Seq (
71- // necessitated by the introduction of new abstract methods in FactoryAdapter:
72- exclude[ReversedMissingMethodProblem ](" scala.xml.parsing.FactoryAdapter.createComment" ), // see #549
73- exclude[ReversedMissingMethodProblem ](" scala.xml.parsing.FactoryAdapter.createPCData" ) // see #558
74- )
68+ // import com.typesafe.tools.mima.core.{}
69+ // import com.typesafe.tools.mima.core.ProblemFilters
70+ Seq ( // exclusions for all Scala versions
71+ ) ++ (CrossVersion .partialVersion(scalaVersion.value) match {
72+ case Some ((3 , _)) => Seq ( // Scala 3-specific exclusions
73+ )
74+ case Some ((2 , minor)) => Seq ( // Scala 2-specific exclusions
75+ ) ++ (minor match {
76+ case 13 => Seq ( // Scala 2.13-specific exclusions
77+ )
78+ case 12 => Seq ( // Scala 2.12-specific exclusions
79+ )
80+ })
81+ case _ => Seq ()
82+ })
7583 },
7684 // Mima signature checking stopped working after 3.0.2 upgrade, see #557
7785 mimaReportSignatureProblems := (CrossVersion .partialVersion(scalaVersion.value) match {
0 commit comments