58
58
// scripted test settings
59
59
scriptedLaunchOpts += " -Dproject.version=" + version.value
60
60
61
+ // binary compatibility settings
62
+ mimaPreviousArtifacts := {
63
+ val m = organization.value %% moduleName.value % " 1.3.15"
64
+ val sbtBinV = (sbtBinaryVersion in pluginCrossBuild).value
65
+ val scalaBinV = (scalaBinaryVersion in update).value
66
+ Set (Defaults .sbtPluginExtra(m cross CrossVersion .Disabled (), sbtBinV, scalaBinV))
67
+ }
68
+ mimaBinaryIssueFilters ++= {
69
+ import com .typesafe .tools .mima .core ._
70
+ List (
71
+ // added via #1179
72
+ ProblemFilters .exclude[ReversedMissingMethodProblem ](" com.typesafe.sbt.packager.rpm.RpmKeys.rpmEpoch" ),
73
+ ProblemFilters .exclude[ReversedMissingMethodProblem ](
74
+ " com.typesafe.sbt.packager.rpm.RpmKeys.com$typesafe$sbt$packager$rpm$RpmKeys$_setter_$rpmEpoch_="
75
+ ),
76
+ ProblemFilters .exclude[MissingTypesProblem ](" com.typesafe.sbt.packager.rpm.RpmMetadata$" ),
77
+ ProblemFilters .exclude[DirectMissingMethodProblem ](" com.typesafe.sbt.packager.rpm.RpmMetadata.apply" ),
78
+ ProblemFilters .exclude[DirectMissingMethodProblem ](" com.typesafe.sbt.packager.rpm.RpmMetadata.copy" ),
79
+ ProblemFilters .exclude[DirectMissingMethodProblem ](" com.typesafe.sbt.packager.rpm.RpmMetadata.this" )
80
+ )
81
+ }
82
+
61
83
// Release configuration
62
84
publishMavenStyle := false
63
85
@@ -84,7 +106,7 @@ bintrayRepository := "sbt-plugin-releases"
84
106
addCommandAlias(" scalafmtAll" , " ; scalafmt ; test:scalafmt ; sbt:scalafmt" )
85
107
// ci commands
86
108
addCommandAlias(" validateFormatting" , " ; scalafmt::test ; test:scalafmt::test ; sbt:scalafmt::test" )
87
- addCommandAlias(" validate" , " ; clean ; update ; validateFormatting ; test" )
109
+ addCommandAlias(" validate" , " ; clean ; update ; validateFormatting ; test ; mimaReportBinaryIssues " )
88
110
89
111
// List all scripted test separately to schedule them in different travis-ci jobs.
90
112
// Travis-CI has hard timeouts for jobs, so we run them in smaller jobs as the scripted
0 commit comments