From 7f73077fd2eee28d268a1a2a8aa54607fabb47e3 Mon Sep 17 00:00:00 2001 From: Matthias Kurz Date: Thu, 2 Nov 2023 12:22:54 +0100 Subject: [PATCH] Set mimaPreviousArtifacts to last "major" release --- build.sbt | 34 +++------------------------------- 1 file changed, 3 insertions(+), 31 deletions(-) diff --git a/build.sbt b/build.sbt index aea46f93..5d1d0fd5 100644 --- a/build.sbt +++ b/build.sbt @@ -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"), ) )