@@ -134,7 +134,7 @@ object Build {
134134 * - `3.M.0` if `P > 0`
135135 * - `3.(M-1).0` if `P = 0`
136136 */
137- val mimaPreviousDottyVersion = " 3.7.0 "
137+ val mimaPreviousDottyVersion = " 3.7.3 " // for 3.8.0, we compare against 3.7.3
138138
139139 /** LTS version against which we check binary compatibility.
140140 *
@@ -304,6 +304,7 @@ object Build {
304304 Test / develocityBuildCacheClient := None ,
305305 extraDevelocityCacheInputFiles := Seq .empty,
306306 extraDevelocityCacheInputFiles / outputFileStamper := FileStamper .Hash ,
307+ resolvers += (" Artifactory" at " https://repo.scala-lang.org/artifactory/fat-jar/" ),
307308 )
308309
309310 // Settings shared globally (scoped in Global). Used in build.sbt
@@ -1636,6 +1637,16 @@ object Build {
16361637 publish / skip := false ,
16371638 // Project specific target folder. sbt doesn't like having two projects using the same target folder
16381639 target := target.value / " scala-library-nonbootstrapped" ,
1640+ // Add configuration for MiMa
1641+ mimaCheckDirection := (compatMode match {
1642+ case CompatMode .BinaryCompatible => " backward"
1643+ case CompatMode .SourceAndBinaryCompatible => " both"
1644+ }),
1645+ mimaExcludeAnnotations += " scala.annotation.experimental" ,
1646+ mimaPreviousArtifacts += (" org.scala-lang" % " fat-stdlib" % " 3.7.3" ),
1647+ mimaForwardIssueFilters := MiMaFilters .Scala3Library .ForwardsBreakingChanges ,
1648+ mimaBackwardIssueFilters := MiMaFilters .Scala3Library .BackwardsBreakingChanges ,
1649+ customMimaReportBinaryIssues(" MiMaFilters.Scala3Library" ),
16391650 )
16401651
16411652 /* Configuration of the org.scala-lang:scala3-library_3:*.**.**-nonbootstrapped project */
@@ -1748,6 +1759,16 @@ object Build {
17481759 scalaCompilerBridgeBinaryJar := {
17491760 Some ((`scala3-sbt-bridge-nonbootstrapped` / Compile / packageBin).value)
17501761 },
1762+ // Add configuration for MiMa
1763+ mimaCheckDirection := (compatMode match {
1764+ case CompatMode .BinaryCompatible => " backward"
1765+ case CompatMode .SourceAndBinaryCompatible => " both"
1766+ }),
1767+ mimaExcludeAnnotations += " scala.annotation.experimental" ,
1768+ mimaPreviousArtifacts += (" org.scala-lang" % " fat-stdlib" % " 3.7.3" ),
1769+ mimaForwardIssueFilters := MiMaFilters .Scala3Library .ForwardsBreakingChanges ,
1770+ mimaBackwardIssueFilters := MiMaFilters .Scala3Library .BackwardsBreakingChanges ,
1771+ customMimaReportBinaryIssues(" MiMaFilters.Scala3Library" ),
17511772 )
17521773
17531774 /* Configuration of the org.scala-lang:scala3-library_3:*.**.**-bootstrapped project */
0 commit comments