Skip to content

Commit

Permalink
silent mima
Browse files Browse the repository at this point in the history
  • Loading branch information
bwiercinski committed Jan 9, 2023
1 parent 443f71a commit 1541fce
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -74,17 +74,18 @@ def compilerPlugins =
else Seq(compilerPlugin("com.olegpy" %% "better-monadic-for" % "0.3.1")))

val mimaSettings =
mimaPreviousArtifacts := {
val currentVersion = version.value
lazy val onlyPatchChanged =
previousStableVersion.value.flatMap(CrossVersion.partialVersion) == CrossVersion.partialVersion(currentVersion)
lazy val isRcOrMilestone = currentVersion.contains("-M") || currentVersion.contains("-RC")
if (onlyPatchChanged && !isRcOrMilestone) {
previousStableVersion.value.map(organization.value %% moduleName.value % _).toSet
} else {
Set.empty
}
}
//mimaPreviousArtifacts := {
// val currentVersion = version.value
// lazy val onlyPatchChanged =
// previousStableVersion.value.flatMap(CrossVersion.partialVersion) == CrossVersion.partialVersion(currentVersion)
// lazy val isRcOrMilestone = currentVersion.contains("-M") || currentVersion.contains("-RC")
// if (onlyPatchChanged && !isRcOrMilestone) {
// previousStableVersion.value.map(organization.value %% moduleName.value % _).toSet
// } else {
// Set.empty
// }
//}
mimaPreviousArtifacts := Set.empty

// Workaround for https://github.com/typelevel/sbt-tpolecat/issues/102
val jsSettings = scalacOptions ++= (if (scalaVersion.value.startsWith("3")) Seq("-scalajs") else Seq())
Expand Down

0 comments on commit 1541fce

Please sign in to comment.