From c04e95dcdc2b76d252156f8dfbe0d7fef2e26c28 Mon Sep 17 00:00:00 2001 From: Brian Holt Date: Mon, 14 Oct 2024 11:50:13 -0500 Subject: [PATCH] exclude some FinalMethodProblems in the shaded package from MiMa checks --- build.sbt | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/build.sbt b/build.sbt index 01e6367..f764336 100644 --- a/build.sbt +++ b/build.sbt @@ -92,6 +92,17 @@ lazy val `secure-config` = (project in file(".")) Compile / smithy4sSmithyLibrary := false, Compile / scalafix / unmanagedSources := (Compile / sources).value, scalafixOnCompile := true, + mimaBinaryIssueFilters ++= { + import com.typesafe.tools.mima.core.* + + // exclusions in this package should be safe since everything in there should be package private + val shadedPackage = "com.dwolla.config.smithy_shaded.com.amazonaws.kms" + + Seq( + ProblemFilters.exclude[FinalMethodProblem](s"$shadedPackage.KMSOperation#Transformed.transform"), + ProblemFilters.exclude[FinalMethodProblem](s"$shadedPackage.KMSOperation#reified.transform"), + ) + } ) .enablePlugins( Smithy4sCodegenPlugin,