Skip to content

Commit

Permalink
Clear explicit artifacts when setting mimaPreviousArtifacts (#7)
Browse files Browse the repository at this point in the history
Seems it attributes wrong names to resulting artifacts if sbt-mima uses
coursier to fetch dependencies, which makes the mima check fail.
  • Loading branch information
alexarchambault authored May 28, 2020
1 parent fc06eb8 commit de11e5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/scala/sbtcompatibility/SbtCompatibilityMima.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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))
}
Expand Down

0 comments on commit de11e5e

Please sign in to comment.