From 0ece0bcd6f4a4bf2a59e9c58cb4aa91655de8ac6 Mon Sep 17 00:00:00 2001 From: PJ Fanning Date: Wed, 7 Feb 2024 18:42:44 +0100 Subject: [PATCH 1/2] mima comparison failing --- build.sbt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/build.sbt b/build.sbt index 603e7532..fec21d3f 100644 --- a/build.sbt +++ b/build.sbt @@ -86,6 +86,8 @@ lazy val codegen = Project(id = "codegen", base = file("codegen")) .settings(addArtifact(Compile / assembly / artifact, assembly)) .settings(addArtifact(Artifact(pekkoGrpcCodegenId, "bat", "bat", "bat"), mkBatAssemblyTask)) +val mimaCompareVersion = "1.0.2" + lazy val runtime = Project(id = "runtime", base = file("runtime")) .settings(Dependencies.runtime) .settings(VersionGenerator.settings) @@ -96,8 +98,8 @@ lazy val runtime = Project(id = "runtime", base = file("runtime")) .settings( name := pekkoGrpcRuntimeName, mimaFailOnNoPrevious := true, - mimaPreviousArtifacts := previousStableVersion.value.map(v => - Set(organization.value %% "pekko-grpc-runtime" % v)).getOrElse(Set.empty), + mimaPreviousArtifacts := Set( + organization.value %% "pekko-grpc-runtime" % mimaCompareVersion), AutomaticModuleName.settings("pekko.grpc.runtime"), ReflectiveCodeGen.generatedLanguages := Seq("Scala"), ReflectiveCodeGen.extraGenerators := Seq("ScalaMarshallersCodeGenerator"), From f03997eed329cd36214b7f2c0b349a23f5c6c2d2 Mon Sep 17 00:00:00 2001 From: PJ Fanning Date: Wed, 7 Feb 2024 18:55:05 +0100 Subject: [PATCH 2/2] Update build.sbt --- build.sbt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.sbt b/build.sbt index fec21d3f..bbba57aa 100644 --- a/build.sbt +++ b/build.sbt @@ -98,7 +98,7 @@ lazy val runtime = Project(id = "runtime", base = file("runtime")) .settings( name := pekkoGrpcRuntimeName, mimaFailOnNoPrevious := true, - mimaPreviousArtifacts := Set( + mimaPreviousArtifacts := Set( organization.value %% "pekko-grpc-runtime" % mimaCompareVersion), AutomaticModuleName.settings("pekko.grpc.runtime"), ReflectiveCodeGen.generatedLanguages := Seq("Scala"),