From c4b560bd421b4af27e2a94560193728827383f93 Mon Sep 17 00:00:00 2001 From: Scala Steward Date: Wed, 25 Aug 2021 12:57:25 +0200 Subject: [PATCH 1/2] Update sbt-mima-plugin to 1.0.0 --- build.sbt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.sbt b/build.sbt index 4abe3fd..07f9d15 100644 --- a/build.sbt +++ b/build.sbt @@ -26,7 +26,7 @@ lazy val `sbt-version-policy` = project .settings( scriptedLaunchOpts += "-Dplugin.version=" + version.value, scriptedBufferLog := false, - addSbtPlugin("com.typesafe" % "sbt-mima-plugin" % "0.9.2"), + addSbtPlugin("com.typesafe" % "sbt-mima-plugin" % "1.0.0"), libraryDependencies ++= Seq( "io.github.alexarchambault" %% "data-class" % "0.2.5" % Provided, compilerPlugin("org.scalamacros" % "paradise" % "2.1.1" cross CrossVersion.full) From 64969caf6db5e674da7ff85bacea0bc7a82fc1e0 Mon Sep 17 00:00:00 2001 From: Julien Richard-Foy Date: Wed, 25 Aug 2021 14:18:48 +0200 Subject: [PATCH 2/2] Fix compilation error --- build.sbt | 2 +- .../src/main/scala/sbtversionpolicy/internal/MimaIssues.scala | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/build.sbt b/build.sbt index 07f9d15..376b3fc 100644 --- a/build.sbt +++ b/build.sbt @@ -11,7 +11,7 @@ inThisBuild(List( url("https://github.com/alexarchambault") ) ), - versionPolicyIntention := Compatibility.BinaryAndSourceCompatible + versionPolicyIntention := Compatibility.None )) lazy val root = (project in file(".")) diff --git a/sbt-version-policy/src/main/scala/sbtversionpolicy/internal/MimaIssues.scala b/sbt-version-policy/src/main/scala/sbtversionpolicy/internal/MimaIssues.scala index cb7e585..e16f4ef 100644 --- a/sbt-version-policy/src/main/scala/sbtversionpolicy/internal/MimaIssues.scala +++ b/sbt-version-policy/src/main/scala/sbtversionpolicy/internal/MimaIssues.scala @@ -15,6 +15,7 @@ object MimaIssues { val log = streams.value.log val previousClassfiles = mimaPreviousClassfiles.value val currentClassfiles = mimaCurrentClassfiles.value + val excludeAnnotations = mimaExcludeAnnotations.value val cp = (mimaFindBinaryIssues / fullClasspath).value val scalaVersionValue = scalaVersion.value @@ -31,7 +32,8 @@ object MimaIssues { cp, "forward", scalaVersionValue, - log + log, + excludeAnnotations.toList ) } .filter {