Skip to content

Commit

Permalink
Add 1.0.5 to mimaPreviousArtifacts, & backfill
Browse files Browse the repository at this point in the history
Remove the file exclude files before (a) compiler-bridge's exclude
file is redundant since we no longer mima-check it, and (b) it interacts
badly with multiple versions.
  • Loading branch information
dwijnand committed Jan 2, 2018
1 parent e6b5420 commit 3495f5a
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 12 deletions.
22 changes: 20 additions & 2 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,11 @@ lazy val compilerBridgeTestScalaVersions = List(scala212, scala211, scala210)

def mimaSettings: Seq[Setting[_]] = Seq(
mimaPreviousArtifacts := Set(
organization.value % moduleName.value % "1.0.0"
"1.0.0", "1.0.1", "1.0.2", "1.0.3", "1.0.4", "1.0.5",
) map (version =>
organization.value %% moduleName.value % version
cross (if (crossPaths.value) CrossVersion.binary else CrossVersion.disabled)
)
),
)

def commonSettings: Seq[Setting[_]] = Seq(
Expand Down Expand Up @@ -284,6 +286,15 @@ lazy val zincCompileCore = (project in internalPath / "zinc-compile-core")
baseDirectory.value / "src" / "main" / "contraband-java",
sourceManaged in (Compile, generateContrabands) := baseDirectory.value / "src" / "main" / "contraband-java",
mimaSettings,
mimaBinaryIssueFilters ++= {
import com.typesafe.tools.mima.core._
import com.typesafe.tools.mima.core.ProblemFilters._
Seq(
// PositionImpl is a private class only invoked in the same source.
exclude[FinalClassProblem]("sbt.internal.inc.javac.DiagnosticsReporter$PositionImpl"),
exclude[DirectMissingMethodProblem]("sbt.internal.inc.javac.DiagnosticsReporter#PositionImpl.this"),
)
},
)
.configure(addSbtUtilLogging, addSbtIO, addSbtUtilControl)

Expand Down Expand Up @@ -321,6 +332,13 @@ lazy val compilerInterface = (project in internalPath / "compiler-interface")
autoScalaLibrary := false,
altPublishSettings,
mimaSettings,
mimaBinaryIssueFilters ++= {
import com.typesafe.tools.mima.core._
import com.typesafe.tools.mima.core.ProblemFilters._
Seq(
exclude[ReversedMissingMethodProblem]("xsbti.compile.ExternalHooks#Lookup.hashClasspath"),
)
},
)
.configure(addSbtUtilInterface)

Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

0 comments on commit 3495f5a

Please sign in to comment.