Skip to content

Commit

Permalink
Merge pull request #28 from sjrd/tasty-mima-1.2.0
Browse files Browse the repository at this point in the history
Upgrade to tasty-mima 1.2.0.
  • Loading branch information
sjrd authored Feb 20, 2024
2 parents 6798748 + 1d96a3b commit fcba2c9
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 9 deletions.
4 changes: 2 additions & 2 deletions build.sbt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

// Must stay in sync with TastyMiMaPlugin.TastyMiMaVersion
val TastyMiMaVersion = "1.1.0"
val TastyMiMaVersion = "1.2.0"

inThisBuild(Def.settings(
crossScalaVersions := Seq("2.12.17"),
Expand Down Expand Up @@ -28,7 +28,7 @@ inThisBuild(Def.settings(
Developer("bishabosha", "Jamie Thompson", "bishbashboshjt@gmail.com", url("https://github.com/bishabosha")),
),

versionPolicyIntention := Compatibility.BinaryAndSourceCompatible,
versionPolicyIntention := Compatibility.BinaryCompatible,
// Ignore dependencies to internal modules whose version is like `1.2.3+4...` (see https://github.com/scalacenter/sbt-version-policy#how-to-integrate-with-sbt-dynver)
versionPolicyIgnoredInternalDependencyVersions := Some("^\\d+\\.\\d+\\.\\d+\\+\\d+".r),
))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import sbt.plugins.JvmPlugin

object TastyMiMaPlugin extends AutoPlugin {
// Must stay in sync with TastyMiMaVersion in build.sbt
private val TastyMiMaVersion = "1.1.0"
private val TastyMiMaVersion = "1.2.0"

object autoImport {
val tastyMiMaPreviousArtifacts: SettingKey[Set[ModuleID]] =
Expand Down
2 changes: 1 addition & 1 deletion sbt-tasty-mima/src/sbt-test/tastymima/basicok/build.sbt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import tastymima.intf._

scalaVersion := "3.3.0"
scalaVersion := "3.4.0"
name := "test-project"

tastyMiMaPreviousArtifacts := Set(organization.value %% name.value % "0.0.1-SNAPSHOT")
Expand Down
4 changes: 2 additions & 2 deletions sbt-tasty-mima/src/sbt-test/tastymima/crossversion/build.sbt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import tastymima.intf._

crossScalaVersions := Seq("3.3.0", "3.2.2", "2.13.10", "2.12.17")
scalaVersion := "3.3.0"
crossScalaVersions := Seq("3.4.0", "3.3.0", "3.2.2", "2.13.10", "2.12.17")
scalaVersion := "3.4.0"
name := "test-project"

tastyMiMaPreviousArtifacts := Set(organization.value %% name.value % "0.0.1-SNAPSHOT")
Expand Down
4 changes: 4 additions & 0 deletions sbt-tasty-mima/src/sbt-test/tastymima/crossversion/test
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
> set version := "0.0.2-SNAPSHOT"

# filters are set in the build file, so tasty-mima check should pass
> ++3.4.0
> tastyMiMaReportIssues
> ++3.3.0
> tastyMiMaReportIssues
> ++3.2.2
Expand All @@ -19,6 +21,8 @@

# remove all filters so tasty-mima check fails
> set tastyMiMaConfig ~= { _.withReplacedProblemFilters(java.util.Arrays.asList()) }
> ++3.4.0
-> tastyMiMaReportIssues
> ++3.3.0
-> tastyMiMaReportIssues
> ++3.2.2
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import tastymima.intf._

scalaVersion := "3.3.0"
scalaVersion := "3.4.0"
name := "test-project"

tastyMiMaVersionOverride := Some("0.3.0")
tastyMiMaTastyQueryVersionOverride := Some("0.8.1")
tastyMiMaVersionOverride := Some("1.1.0")
tastyMiMaTastyQueryVersionOverride := Some("1.3.0")

tastyMiMaPreviousArtifacts := Set(organization.value %% name.value % "0.0.1-SNAPSHOT")

Expand Down

0 comments on commit fcba2c9

Please sign in to comment.