You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pekko.apache.org by md...@apache.org on 2024/01/15 10:57:43 UTC

(incubator-pekko) branch 1.0.x updated: use sbt-pekko-build (#826)

This is an automated email from the ASF dual-hosted git repository.

mdedetrich pushed a commit to branch 1.0.x
in repository https://gitbox.apache.org/repos/asf/incubator-pekko.git


The following commit(s) were added to refs/heads/1.0.x by this push:
     new 4209f98035 use sbt-pekko-build (#826)
4209f98035 is described below

commit 4209f9803581c1d3d317453be02d6bf01fffdbca
Author: PJ Fanning <pj...@users.noreply.github.com>
AuthorDate: Mon Jan 15 20:44:49 2024 +1100

    use sbt-pekko-build (#826)
    
    * try sbt-pekko-build
    
    * Use latest sbt-pekko-build 0.3.0
    
    * remove temp resolver
    
    ---------
    
    Co-authored-by: Matthew de Detrich <ma...@aiven.io>
    
    (cherry picked from commit dc034749b32b7bbdb4469ad12731cf436af60748)
---
 build.sbt           |  5 +++++
 project/MiMa.scala  | 63 -----------------------------------------------------
 project/plugins.sbt |  1 +
 3 files changed, 6 insertions(+), 63 deletions(-)

diff --git a/build.sbt b/build.sbt
index a23dcd3436..2f05cbd2e6 100644
--- a/build.sbt
+++ b/build.sbt
@@ -26,6 +26,11 @@ commands := commands.value.filterNot { command =>
 
 ThisBuild / reproducibleBuildsCheckResolver := Resolver.ApacheMavenStagingRepo
 
+ThisBuild / pekkoCoreProject := true
+
+// pekkoInlineEnabled must be set to false when this is backported to 1.0.x branch
+ThisBuild / pekkoInlineEnabled := false
+
 enablePlugins(
   UnidocRoot,
   UnidocWithPrValidation,
diff --git a/project/MiMa.scala b/project/MiMa.scala
deleted file mode 100644
index 4bdbb9f573..0000000000
--- a/project/MiMa.scala
+++ /dev/null
@@ -1,63 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * license agreements; and to You under the Apache License, version 2.0:
- *
- *   https://www.apache.org/licenses/LICENSE-2.0
- *
- * This file is part of the Apache Pekko project, which was derived from Akka.
- */
-
-/*
- * Copyright (C) 2009-2022 Lightbend Inc. <https://www.lightbend.com>
- */
-
-import scala.collection.immutable
-import sbt._
-import sbt.Keys._
-import com.typesafe.tools.mima.plugin.MimaPlugin
-import com.typesafe.tools.mima.plugin.MimaPlugin.autoImport._
-
-object MiMa extends AutoPlugin {
-
-  private val latestPatchOf10 = 0
-
-  override def requires = MimaPlugin
-  override def trigger = allRequirements
-
-  val checkMimaFilterDirectories =
-    taskKey[Unit]("Check that the mima directories are correct compared to latest version")
-
-  override val projectSettings = Seq(
-    mimaReportSignatureProblems := true,
-    mimaPreviousArtifacts := pekkoPreviousArtifacts(name.value, organization.value),
-    checkMimaFilterDirectories := checkFilterDirectories(baseDirectory.value))
-
-  def checkFilterDirectories(moduleRoot: File): Unit = {
-    val nextVersionFilterDir =
-      moduleRoot / "src" / "main" / "mima-filters" / s"1.0.${latestPatchOf10 + 1}.backwards.excludes"
-    if (nextVersionFilterDir.exists()) {
-      throw new IllegalArgumentException(s"Incorrect mima filter directory exists: '$nextVersionFilterDir' " +
-        s"should be with number from current release '${moduleRoot / "src" / "main" / "mima-filters" / s"1.0.$latestPatchOf10.backwards.excludes"}")
-    }
-  }
-
-  def pekkoPreviousArtifacts(
-      projectName: String,
-      organization: String): Set[sbt.ModuleID] = {
-    val versions: Seq[String] = {
-      val firstPatchOf10 = 0
-
-      val pekko10Previous = expandVersions(1, 0, 0 to latestPatchOf10)
-
-      pekko10Previous
-    }
-
-    // check against all binary compatible artifacts
-    versions.map { v =>
-      organization %% projectName % v
-    }.toSet
-  }
-
-  private def expandVersions(major: Int, minor: Int, patches: immutable.Seq[Int]): immutable.Seq[String] =
-    patches.map(patch => s"$major.$minor.$patch")
-}
diff --git a/project/plugins.sbt b/project/plugins.sbt
index d88cae5b26..657766d9fa 100644
--- a/project/plugins.sbt
+++ b/project/plugins.sbt
@@ -27,6 +27,7 @@ addSbtPlugin("net.bzzt" % "sbt-reproducible-builds" % "0.31")
 addSbtPlugin("com.dwijnand" % "sbt-dynver" % "4.1.1")
 addSbtPlugin("com.github.pjfanning" % "sbt-source-dist" % "0.1.10")
 addSbtPlugin("org.mdedetrich" % "sbt-apache-sonatype" % "0.1.10")
+addSbtPlugin("com.github.pjfanning" % "sbt-pekko-build" % "0.3.0")
 addSbtPlugin("com.github.reibitto" % "sbt-welcome" % "0.2.2")
 addSbtPlugin("com.github.sbt" % "sbt-license-report" % "1.5.0")
 


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pekko.apache.org
For additional commands, e-mail: commits-help@pekko.apache.org