Skip to content

Commit

Permalink
Merge pull request #195 from dwijnand/compat
Browse files Browse the repository at this point in the history
Switch to sbt-compat
  • Loading branch information
dwijnand authored Aug 22, 2017
2 parents 80bef91 + 83db868 commit 8724e4f
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 78 deletions.
26 changes: 25 additions & 1 deletion project/Build.scala
Original file line number Diff line number Diff line change
Expand Up @@ -167,13 +167,37 @@ object MimaBuild {
settings(scriptedSettings)
settings(name := "sbt-mima-plugin",
sbtPlugin := true,
libraryDependencies += Defaults.sbtPluginExtra(
"com.dwijnand" % "sbt-compat" % "1.0.0",
(sbtBinaryVersion in pluginCrossBuild).value,
(scalaBinaryVersion in update).value
),
scriptedLaunchOpts := scriptedLaunchOpts.value :+ "-Dplugin.version=" + version.value,
scriptedBufferLog := false,
// Scripted locally publishes sbt plugin and then runs test projects with locally published version.
// Therefore we also need to locally publish dependent projects on scripted test run.
scripted := (scripted dependsOn (publishLocal in core, publishLocal in reporter)).evaluated)
dependsOn(reporter)
settings(sbtPublishSettings:_*)
settings(
sbtPublishSettings,
mimaBinaryIssueFilters ++= {
import com.typesafe.tools.mima.core._
Seq(
// sbt-compat has been created to define these and has been added as a dependency of sbt-mima-plugin
ProblemFilters.exclude[MissingClassProblem]("sbt.compat"),
ProblemFilters.exclude[MissingClassProblem]("sbt.compat$"),
ProblemFilters.exclude[MissingClassProblem]("sbt.librarymanagement.package"),
ProblemFilters.exclude[MissingClassProblem]("sbt.librarymanagement.package$"),
ProblemFilters.exclude[MissingClassProblem]("sbt.librarymanagement.package$UpdateConfigurationOps"),
ProblemFilters.exclude[MissingClassProblem]("sbt.librarymanagement.package$UpdateConfigurationOps$"),
ProblemFilters.exclude[MissingClassProblem]("sbt.librarymanagement.UpdateConfiguration"),
ProblemFilters.exclude[MissingClassProblem]("sbt.librarymanagement.UpdateConfiguration$"),
ProblemFilters.exclude[MissingClassProblem]("sbt.librarymanagement.DependencyResolution"),
ProblemFilters.exclude[MissingClassProblem]("sbt.librarymanagement.ivy.IvyDependencyResolution"),
ProblemFilters.exclude[MissingClassProblem]("sbt.librarymanagement.ivy.IvyDependencyResolution$")
)
}
)
)

lazy val reporterFunctionalTests = project("reporter-functional-tests",
Expand Down
2 changes: 1 addition & 1 deletion project/plugins.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ libraryDependencies += "com.typesafe" % "config" % "1.3.0"

addSbtPlugin("com.jsuereth" % "sbt-pgp" % "1.1.0-M1")

addSbtPlugin("com.typesafe" % "sbt-mima-plugin" % "0.1.15")
addSbtPlugin("com.typesafe" % "sbt-mima-plugin" % "0.1.17")
73 changes: 0 additions & 73 deletions sbtplugin/src/main/scala-sbt-0.13/compat.scala

This file was deleted.

3 changes: 0 additions & 3 deletions sbtplugin/src/main/scala-sbt-1.0/compat.scala

This file was deleted.

0 comments on commit 8724e4f

Please sign in to comment.