@@ -9,20 +9,20 @@ ThisBuild / licenses += (("Apache-2.0", url("https://www.apache.org/licenses/LIC
9
9
ThisBuild / libraryDependencySchemes += " org.scala-js" %% " scalajs-library" % " semver-spec"
10
10
ThisBuild / apiURL := Some (url(" https://javadoc.io/doc/org.scala-lang.modules/scala-xml_2.13/" ))
11
11
12
- lazy val configSettings : Seq [Setting [_ ]] = Seq (
12
+ lazy val configSettings : Seq [Setting [? ]] = Seq (
13
13
unmanagedSourceDirectories ++= {
14
14
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
+ }
26
26
}
27
27
}
28
28
)
@@ -65,13 +65,21 @@ lazy val xml = crossProject(JSPlatform, JVMPlatform, NativePlatform)
65
65
versionPolicyIntention := Compatibility .BinaryCompatible ,
66
66
// Note: See discussion on non-JVM Mima in https://github.com/scala/scala-xml/pull/517
67
67
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
+ })
75
83
},
76
84
// Mima signature checking stopped working after 3.0.2 upgrade, see #557
77
85
mimaReportSignatureProblems := (CrossVersion .partialVersion(scalaVersion.value) match {
0 commit comments