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

fanningpj pushed a commit to branch main
in repository 
https://gitbox.apache.org/repos/asf/incubator-pekko-platform-guide.git


The following commit(s) were added to refs/heads/main by this push:
     new 846cd58  migrate cleanup-dependencies-project to pekko (#57)
846cd58 is described below

commit 846cd58578a469f8eb3f50b8259133f5615f994a
Author: Laglangyue <[email protected]>
AuthorDate: Sun Dec 24 00:09:51 2023 +0800

    migrate cleanup-dependencies-project to pekko (#57)
    
    * migrate cleanup-dependencies-project to pekko
    
    * add pekko grpc plugin
    
    * pekko-grpc-sbt-plugin 1.0.1
    
    * logback-classic 1.2.13 due to CVEs
    
    * fix dependency conflict
    
    * update sbt-native-packager
    
    * revert
    
    ---------
    
    Co-authored-by: Jiafu Tang <[email protected]>
    Co-authored-by: PJ Fanning <[email protected]>
---
 .../cleanup-dependencies-project/build.sbt         | 105 ++++++++++-----------
 .../project/plugins.sbt                            |   4 +-
 2 files changed, 53 insertions(+), 56 deletions(-)

diff --git 
a/docs-source/docs/modules/how-to/examples/cleanup-dependencies-project/build.sbt
 
b/docs-source/docs/modules/how-to/examples/cleanup-dependencies-project/build.sbt
index 1bcf825..4a1c260 100644
--- 
a/docs-source/docs/modules/how-to/examples/cleanup-dependencies-project/build.sbt
+++ 
b/docs-source/docs/modules/how-to/examples/cleanup-dependencies-project/build.sbt
@@ -1,7 +1,7 @@
 name := "cleanup-dependencies-project"
 
-organization := "com.lightbend.akka.samples"
-organizationHomepage := Some(url("https://akka.io";))
+organization := "org.apache.pekko.samples"
+organizationHomepage := Some(url("https://pekko.apache.org/";))
 licenses := Seq(("CC0", 
url("https://creativecommons.org/publicdomain/zero/1.0";)))
 
 scalaVersion := "2.13.12"
@@ -22,25 +22,25 @@ Test / logBuffered := false
 run / fork := false
 Global / cancelable := false // ctrl-c
 
-val AkkaVersion = "2.6.20"
-val AkkaHttpVersion = "10.2.10"
-val AkkaManagementVersion = "1.1.4"
+val PekkoVersion = "1.0.2"
+val PekkoHttpVersion = "1.0.0"
+val PekkoManagementVersion = "1.0.0"
 
-// tag::remove-akka-persistence-cassandra-version[]
-val AkkaPersistenceCassandraVersion = "1.0.6"
-// end::remove-akka-persistence-cassandra-version[]
-// tag::add-akka-persistence-jdbc-version[]
-val AkkaPersistenceJdbcVersion = "5.1.0"
-// end::add-akka-persistence-jdbc-version[]
-// tag::remove-alpakka-kafka-version[]
-val AlpakkaKafkaVersion = "3.0.1"
-// end::remove-alpakka-kafka-version[]
-// tag::remove-akka-projection-version[]
-val AkkaProjectionVersion = "1.2.5"
-// end::remove-akka-projection-version[]
+// tag::remove-pekko-persistence-cassandra-version[]
+val PekkoPersistenceCassandraVersion = "1.0.0"
+// end::remove-pekko-persistence-cassandra-version[]
+// tag::add-pekko-persistence-jdbc-version[]
+val PekkoPersistenceJdbcVersion = "1.0.0"
+// end::add-pekko-persistence-jdbc-version[]
+// tag::remove-pekko-connectors-kafka-version[]
+val PekkoConnectorsKafkaVersion = "1.0.0"
+// end::remove-pekko-connectors-kafka-version[]
+// tag::remove-pekko-projection-version[]
+val PekkoProjectionVersion = "1.0.0"
+// end::remove-pekko-projection-version[]
 
 // tag::remove-grpc-plugin[]
-enablePlugins(AkkaGrpcPlugin)
+enablePlugins(PekkoGrpcPlugin)
 // end::remove-grpc-plugin[]
 
 enablePlugins(JavaAppPackaging, DockerPlugin)
@@ -50,51 +50,48 @@ dockerRepository := sys.props.get("docker.registry")
 ThisBuild / dynverSeparator := "-"
 
 libraryDependencies ++= Seq(
-  "com.typesafe.akka" %% "akka-cluster-sharding-typed" % AkkaVersion,
-  "com.typesafe.akka" %% "akka-stream" % AkkaVersion,
-  // tag::remove-akka-persistence-cassandra[]
-  "com.typesafe.akka" %% "akka-persistence-cassandra" % 
AkkaPersistenceCassandraVersion,
-  // end::remove-akka-persistence-cassandra[]
+  "org.apache.pekko" %% "pekko-cluster-sharding-typed" % PekkoVersion,
+  "org.apache.pekko" %% "pekko-stream" % PekkoVersion,
+  // tag::remove-pekko-persistence-cassandra[]
+  "org.apache.pekko" %% "pekko-persistence-cassandra" % 
PekkoPersistenceCassandraVersion,
+  // end::remove-pekko-persistence-cassandra[]
 
-  // tag::add-akka-persistence-jdbc[]
-  "com.lightbend.akka" %% "akka-persistence-jdbc" % AkkaPersistenceJdbcVersion,
-  // end::add-akka-persistence-jdbc[]
+  // tag::add-pekko-persistence-jdbc[]
+  "org.apache.pekko" %% "pekko-persistence-jdbc" % PekkoPersistenceJdbcVersion,
+  // end::add-pekko-persistence-jdbc[]
 
-  // tag::remove-akka-projection[]
-  "com.lightbend.akka" %% "akka-projection-eventsourced" % 
AkkaProjectionVersion,
-  "com.lightbend.akka" %% "akka-projection-cassandra" % AkkaProjectionVersion,
-  "com.lightbend.akka" %% "akka-projection-jdbc" % AkkaProjectionVersion,
-  "com.typesafe.akka" %% "akka-persistence-query" % AkkaVersion,
-  "com.lightbend.akka" %% "akka-projection-testkit" % AkkaProjectionVersion % 
Test,
-  // end::remove-akka-projection[]
+  // tag::remove-pekko-projection[]
+  "org.apache.pekko" %% "pekko-projection-eventsourced" % 
PekkoProjectionVersion,
+  "org.apache.pekko" %% "pekko-projection-cassandra" % PekkoProjectionVersion,
+  "org.apache.pekko" %% "pekko-projection-jdbc" % PekkoProjectionVersion,
+  "org.apache.pekko" %% "pekko-persistence-query" % PekkoVersion,
+  "org.apache.pekko" %% "pekko-projection-testkit" % PekkoProjectionVersion % 
Test,
+  // end::remove-pekko-projection[]
 
   /*
   // tag::replace-offset-store-for-projections-jdbc[]
-  -  "com.lightbend.akka" %% "akka-projection-cassandra" % 
AkkaProjectionVersion,
-  +  "com.lightbend.akka" %% "akka-projection-jdbc" % AkkaProjectionVersion,
+  -  "org.apache.pekko" %% "pekko-projection-cassandra" % 
PekkoProjectionVersion,
+  +  "org.apache.pekko" %% "pekko-projection-jdbc" % PekkoProjectionVersion,
   // end::replace-offset-store-for-projections-jdbc[]
    */
-  "com.typesafe.akka" %% "akka-http" % AkkaHttpVersion,
-  // tag::remove-grpc-optional[]
-  "com.typesafe.akka" %% "akka-http2-support" % AkkaHttpVersion,
-  // end::remove-grpc-optional[]
-  "com.typesafe.akka" %% "akka-http-spray-json" % AkkaHttpVersion,
-  "com.lightbend.akka.management" %% "akka-management" % AkkaManagementVersion,
-  "com.lightbend.akka.management" %% "akka-management-cluster-http" % 
AkkaManagementVersion,
-  "com.lightbend.akka.management" %% "akka-management-cluster-bootstrap" % 
AkkaManagementVersion,
-  "com.lightbend.akka.discovery" %% "akka-discovery-kubernetes-api" % 
AkkaManagementVersion,
-  "com.typesafe.akka" %% "akka-persistence-typed" % AkkaVersion,
-  "com.typesafe.akka" %% "akka-serialization-jackson" % AkkaVersion,
-  "com.typesafe.akka" %% "akka-discovery" % AkkaVersion,
-  // tag::remove-alpakka-kafka[]
-  "com.typesafe.akka" %% "akka-stream-kafka" % AlpakkaKafkaVersion,
-  // end::remove-alpakka-kafka[]
+  "org.apache.pekko" %% "pekko-http" % PekkoHttpVersion,
+  "org.apache.pekko" %% "pekko-http-spray-json" % PekkoHttpVersion,
+  "org.apache.pekko" %% "pekko-management" % PekkoManagementVersion,
+  "org.apache.pekko" %% "pekko-management-cluster-http" % 
PekkoManagementVersion,
+  "org.apache.pekko" %% "pekko-management-cluster-bootstrap" % 
PekkoManagementVersion,
+  "org.apache.pekko" %% "pekko-discovery-kubernetes-api" % 
PekkoManagementVersion,
+  "org.apache.pekko" %% "pekko-persistence-typed" % PekkoVersion,
+  "org.apache.pekko" %% "pekko-serialization-jackson" % PekkoVersion,
+  "org.apache.pekko" %% "pekko-discovery" % PekkoVersion,
+  // tag::remove-pekko-connectors-kafka[]
+  "org.apache.pekko" %% "pekko-connectors-kafka" % PekkoConnectorsKafkaVersion,
+  // end::remove-pekko-connectors-kafka[]
 
   // Logging
-  "com.typesafe.akka" %% "akka-slf4j" % AkkaVersion,
+  "org.apache.pekko" %% "pekko-slf4j" % PekkoVersion,
   "ch.qos.logback" % "logback-classic" % "1.2.13",
   // Test dependencies
-  "com.typesafe.akka" %% "akka-actor-testkit-typed" % AkkaVersion % Test,
-  "com.typesafe.akka" %% "akka-persistence-testkit" % AkkaVersion % Test,
-  "com.typesafe.akka" %% "akka-stream-testkit" % AkkaVersion % Test,
+  "org.apache.pekko" %% "pekko-actor-testkit-typed" % PekkoVersion % Test,
+  "org.apache.pekko" %% "pekko-persistence-testkit" % PekkoVersion % Test,
+  "org.apache.pekko" %% "pekko-stream-testkit" % PekkoVersion % Test,
   "org.scalatest" %% "scalatest" % "3.2.17" % Test)
diff --git 
a/docs-source/docs/modules/how-to/examples/cleanup-dependencies-project/project/plugins.sbt
 
b/docs-source/docs/modules/how-to/examples/cleanup-dependencies-project/project/plugins.sbt
index 6126b52..b655168 100644
--- 
a/docs-source/docs/modules/how-to/examples/cleanup-dependencies-project/project/plugins.sbt
+++ 
b/docs-source/docs/modules/how-to/examples/cleanup-dependencies-project/project/plugins.sbt
@@ -1,8 +1,8 @@
 // tag::remove-grpc-plugin[]
-addSbtPlugin("com.lightbend.akka.grpc" % "sbt-akka-grpc" % "2.1.5")
+addSbtPlugin("org.apache.pekko" % "pekko-grpc-sbt-plugin" % "1.0.1")
 // end::remove-grpc-plugin[]
 
-addSbtPlugin("com.typesafe.sbt" % "sbt-native-packager" % "1.8.1")
+addSbtPlugin("com.github.sbt" % "sbt-native-packager" % "1.9.16")
 addSbtPlugin("com.dwijnand" % "sbt-dynver" % "4.1.1")
 
 addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.4.2")


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to