Skip to content

Commit

Permalink
Merge pull request playframework#821 from mkurz/adjust_mima
Browse files Browse the repository at this point in the history
Set `mimaPreviousArtifacts` to last "major" release
  • Loading branch information
mkurz authored Nov 2, 2023
2 parents 17bed3f + 7f73077 commit d0119fd
Showing 1 changed file with 3 additions and 31 deletions.
34 changes: 3 additions & 31 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -49,39 +49,11 @@ val scalacOpts = Def.setting[Seq[String]] {
}
}

val previousVersion: Option[String] = Some("3.0.0")

lazy val mimaSettings = Seq(
mimaPreviousArtifacts := Set(
organization.value %% name.value % previousStableVersion.value
.getOrElse(throw new Error("Unable to determine previous version"))
),
mimaPreviousArtifacts := previousVersion.map(organization.value %% moduleName.value % _).toSet,
mimaBinaryIssueFilters ++= Seq(
ProblemFilters.exclude[IncompatibleMethTypeProblem]("play.api.libs.ws.ahc.cache.AhcHttpCache.calculateCurrentAge"),
ProblemFilters.exclude[IncompatibleMethTypeProblem](
"play.api.libs.ws.ahc.cache.AhcHttpCache.calculateFreshnessFromHeuristic"
),
ProblemFilters.exclude[IncompatibleMethTypeProblem](
"play.api.libs.ws.ahc.cache.AhcHttpCache.generateCachedResponse"
),
ProblemFilters.exclude[IncompatibleMethTypeProblem]("play.api.libs.ws.ahc.cache.AhcHttpCache.isCacheableExtension"),
ProblemFilters.exclude[IncompatibleMethTypeProblem]("play.api.libs.ws.ahc.cache.AhcHttpCache.serveAction"),
ProblemFilters.exclude[IncompatibleResultTypeProblem]("play.api.libs.ws.ahc.cache.AhcHttpCache.cachingAction"),
ProblemFilters.exclude[IncompatibleResultTypeProblem](
"play.api.libs.ws.ahc.cache.AhcHttpCache.calculateCurrentAge"
),
ProblemFilters.exclude[IncompatibleResultTypeProblem](
"play.api.libs.ws.ahc.cache.AhcHttpCache.calculateFreshnessLifetime"
),
ProblemFilters.exclude[IncompatibleResultTypeProblem](
"play.api.libs.ws.ahc.cache.AhcHttpCache.generateCacheRequest"
),
ProblemFilters.exclude[IncompatibleResultTypeProblem](
"play.api.libs.ws.ahc.cache.AhcHttpCache.generateOriginResponse"
),
ProblemFilters.exclude[IncompatibleResultTypeProblem](
"play.api.libs.ws.ahc.cache.AhcHttpCache.generateStoredResponse"
),
ProblemFilters.exclude[IncompatibleResultTypeProblem]("play.api.libs.ws.ahc.cache.AhcHttpCache.selectionAction"),
ProblemFilters.exclude[MissingTypesProblem]("play.api.libs.ws.ahc.cache.AhcHttpCache"),
)
)

Expand Down

0 comments on commit d0119fd

Please sign in to comment.