From de11e5e35ff9422fe668a7f7ddb88c1c8ec2d32d Mon Sep 17 00:00:00 2001 From: Alexandre Archambault Date: Thu, 28 May 2020 16:56:15 +0200 Subject: [PATCH] Clear explicit artifacts when setting mimaPreviousArtifacts (#7) Seems it attributes wrong names to resulting artifacts if sbt-mima uses coursier to fetch dependencies, which makes the mima check fail. --- src/main/scala/sbtcompatibility/SbtCompatibilityMima.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/scala/sbtcompatibility/SbtCompatibilityMima.scala b/src/main/scala/sbtcompatibility/SbtCompatibilityMima.scala index 1ad660c..764c31a 100644 --- a/src/main/scala/sbtcompatibility/SbtCompatibilityMima.scala +++ b/src/main/scala/sbtcompatibility/SbtCompatibilityMima.scala @@ -11,7 +11,7 @@ object SbtCompatibilityMima extends AutoPlugin { override def projectSettings = Def.settings( MimaPlugin.autoImport.mimaPreviousArtifacts := { - val projId = Keys.projectID.value + val projId = Keys.projectID.value.withExplicitArtifacts(Vector.empty) val versions = Version.latestCompatibleWith(sbt.Keys.version.value).toSet versions.map(version => projId.withRevision(version)) }