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-samples.git
The following commit(s) were added to refs/heads/main by this push:
new b4ffe9b Issue #243: Convert `sample-persistence` (non-dc) packages to
pekko (#22)
b4ffe9b is described below
commit b4ffe9beb77bbde992d408fce6663ba6b03fc4ba
Author: Sam Byng <[email protected]>
AuthorDate: Fri Mar 24 22:22:48 2023 +0000
Issue #243: Convert `sample-persistence` (non-dc) packages to pekko (#22)
* update dirname, update build.yaml, update docs=gen
Update pom.xml
Update src code + README
Update pom.xml file to have repositories
Get app conf working
* Migrate sample-persistence-scala to pekko:
Update filepaths
Update build.sbt file
Update ReadME
Update src code
Fixup build.sbt after tests pass
---------
Co-authored-by: sb5 <[email protected]>
---
.github/workflows/build-test.yml | 8 ++---
docs-gen/build.sbt | 8 ++---
.../.gitignore | 0
.../COPYING | 0
.../LICENSE | 0
.../README.md | 4 +--
.../pom.xml | 38 ++++++++++++++--------
.../java/sample/persistence/CborSerializable.java | 0
.../main/java/sample/persistence/ShoppingCart.java | 22 ++++++-------
.../src/main/resources/application.conf | 6 ++--
.../src/main/resources/logback.xml | 0
.../java/sample/persistence/ShoppingCartTest.java | 14 ++++----
.../src/test/resources/logback-test.xml | 0
.../.gitignore | 0
.../COPYING | 0
.../LICENSE | 0
.../README.md | 6 ++--
.../build.sbt | 15 +++++----
.../project/build.properties | 0
.../project/plugins.sbt | 0
.../src/main/resources/application.conf | 6 ++--
.../src/main/resources/logback.xml | 0
.../sample/persistence/CborSerializable.scala | 0
.../scala/sample/persistence/ShoppingCart.scala | 16 ++++-----
.../src/test/resources/logback-test.xml | 0
.../sample/persistence/ShoppingCartSpec.scala | 10 +++---
26 files changed, 84 insertions(+), 69 deletions(-)
diff --git a/.github/workflows/build-test.yml b/.github/workflows/build-test.yml
index a816238..02a8332 100644
--- a/.github/workflows/build-test.yml
+++ b/.github/workflows/build-test.yml
@@ -50,11 +50,11 @@ jobs:
- name: Test akka-sample-fsm-scala
run: cd akka-sample-fsm-scala && sbt test
- - name: Test akka-sample-persistence-java
- run: cd akka-sample-persistence-java && mvn test
+ - name: Test pekko-sample-persistence-java
+ run: cd pekko-sample-persistence-java && mvn test
- - name: Test akka-sample-persistence-scala
- run: cd akka-sample-persistence-scala && sbt test
+ - name: Test pekko-sample-persistence-scala
+ run: cd pekko-sample-persistence-scala && sbt test
- name: Test akka-sample-persistence-dc-java
run: cd akka-sample-persistence-dc-java && mvn test
diff --git a/docs-gen/build.sbt b/docs-gen/build.sbt
index 8d33679..0b1f924 100644
--- a/docs-gen/build.sbt
+++ b/docs-gen/build.sbt
@@ -40,17 +40,17 @@ lazy val `akka-sample-fsm-scala` = project
name := "Akka FSM with Scala",
baseProject := "akka-sample-fsm-scala")
-lazy val `akka-sample-persistence-java` = project
+lazy val `pekko-sample-persistence-java` = project
.enablePlugins(AkkaSamplePlugin)
.settings(
name := "Akka Persistence with Java",
- baseProject := "akka-sample-persistence-java")
+ baseProject := "pekko-sample-persistence-java")
-lazy val `akka-sample-persistence-scala` = project
+lazy val `pekko-sample-persistence-scala` = project
.enablePlugins(AkkaSamplePlugin)
.settings(
name := "Akka Persistence with Scala",
- baseProject := "akka-sample-persistence-scala")
+ baseProject := "pekko-sample-persistence-scala")
lazy val `akka-sample-sharding-java` = project
.enablePlugins(AkkaSamplePlugin)
diff --git a/akka-sample-persistence-java/.gitignore
b/pekko-sample-persistence-java/.gitignore
similarity index 100%
rename from akka-sample-persistence-java/.gitignore
rename to pekko-sample-persistence-java/.gitignore
diff --git a/akka-sample-persistence-java/COPYING
b/pekko-sample-persistence-java/COPYING
similarity index 100%
rename from akka-sample-persistence-java/COPYING
rename to pekko-sample-persistence-java/COPYING
diff --git a/akka-sample-persistence-java/LICENSE
b/pekko-sample-persistence-java/LICENSE
similarity index 100%
rename from akka-sample-persistence-java/LICENSE
rename to pekko-sample-persistence-java/LICENSE
diff --git a/akka-sample-persistence-java/README.md
b/pekko-sample-persistence-java/README.md
similarity index 64%
rename from akka-sample-persistence-java/README.md
rename to pekko-sample-persistence-java/README.md
index 92c9108..d06bf24 100644
--- a/akka-sample-persistence-java/README.md
+++ b/pekko-sample-persistence-java/README.md
@@ -1,4 +1,4 @@
-This example illustrates event sourcing with [Akka
Persistence](https://pekko.apache.org/docs/pekko/current/typed/persistence.html).
+This example illustrates event sourcing with [Apache Pekko
Persistence](https://pekko.apache.org/docs/pekko/current/typed/persistence.html).
Study the source code of the
[ShoppingCart.scala](src/main/java/sample/persistence/ShoppingCart.java). A few
things
to note:
@@ -17,4 +17,4 @@ To run the tests, enter:
mvn test
```
-The `ShoppingCart` application is expanded further in the
`akka-sample-cqrs-java` sample. In that sample the events are tagged to be
consumed by even processors to build other representations from the events, or
publish the events to other services.
+The `ShoppingCart` application is expanded further in the
`pekko-sample-cqrs-java` sample. In that sample the events are tagged to be
consumed by even processors to build other representations from the events, or
publish the events to other services.
diff --git a/akka-sample-persistence-java/pom.xml
b/pekko-sample-persistence-java/pom.xml
similarity index 63%
rename from akka-sample-persistence-java/pom.xml
rename to pekko-sample-persistence-java/pom.xml
index 8642e6f..85604bd 100644
--- a/akka-sample-persistence-java/pom.xml
+++ b/pekko-sample-persistence-java/pom.xml
@@ -4,9 +4,9 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
- <artifactId>akka-sample-persistence-java</artifactId>
- <groupId>com.lightbend.akka.samples</groupId>
- <name>Akka Persistence sample</name>
+ <artifactId>pekko-sample-persistence-java</artifactId>
+ <groupId>org.apache.pekko</groupId>
+ <name>Apache Pekko Persistence sample</name>
<version>1.0</version>
<licenses>
@@ -16,21 +16,33 @@
</license>
</licenses>
+ <repositories>
+ <repository>
+ <id>apache-pekko-snapshots</id>
+ <name>Apache Snapshots Repository</name>
+
<url>https://repository.apache.org/content/repositories/snapshots/</url>
+ <layout>default</layout>
+ <snapshots>
+ <enabled>true</enabled>
+ </snapshots>
+ </repository>
+ </repositories>
+
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
- <akka.version>2.6.20</akka.version>
+ <pekko.version>0.0.0+26626-3e1231c3-SNAPSHOT</pekko.version>
</properties>
<dependencies>
<dependency>
- <groupId>com.typesafe.akka</groupId>
- <artifactId>akka-persistence-typed_2.13</artifactId>
- <version>${akka.version}</version>
+ <groupId>org.apache.pekko</groupId>
+ <artifactId>pekko-persistence-typed_2.13</artifactId>
+ <version>${pekko.version}</version>
</dependency>
<dependency>
- <groupId>com.typesafe.akka</groupId>
- <artifactId>akka-serialization-jackson_2.13</artifactId>
- <version>${akka.version}</version>
+ <groupId>org.apache.pekko</groupId>
+ <artifactId>pekko-serialization-jackson_2.13</artifactId>
+ <version>${pekko.version}</version>
</dependency>
<dependency>
@@ -40,9 +52,9 @@
</dependency>
<dependency>
- <groupId>com.typesafe.akka</groupId>
- <artifactId>akka-actor-testkit-typed_2.13</artifactId>
- <version>${akka.version}</version>
+ <groupId>org.apache.pekko</groupId>
+ <artifactId>pekko-actor-testkit-typed_2.13</artifactId>
+ <version>${pekko.version}</version>
<scope>test</scope>
</dependency>
<dependency>
diff --git
a/akka-sample-persistence-java/src/main/java/sample/persistence/CborSerializable.java
b/pekko-sample-persistence-java/src/main/java/sample/persistence/CborSerializable.java
similarity index 100%
rename from
akka-sample-persistence-java/src/main/java/sample/persistence/CborSerializable.java
rename to
pekko-sample-persistence-java/src/main/java/sample/persistence/CborSerializable.java
diff --git
a/akka-sample-persistence-java/src/main/java/sample/persistence/ShoppingCart.java
b/pekko-sample-persistence-java/src/main/java/sample/persistence/ShoppingCart.java
similarity index 94%
rename from
akka-sample-persistence-java/src/main/java/sample/persistence/ShoppingCart.java
rename to
pekko-sample-persistence-java/src/main/java/sample/persistence/ShoppingCart.java
index fbcde6a..fe16254 100644
---
a/akka-sample-persistence-java/src/main/java/sample/persistence/ShoppingCart.java
+++
b/pekko-sample-persistence-java/src/main/java/sample/persistence/ShoppingCart.java
@@ -1,16 +1,16 @@
package sample.persistence;
-import akka.actor.typed.ActorRef;
-import akka.actor.typed.Behavior;
-import akka.actor.typed.SupervisorStrategy;
-import akka.pattern.StatusReply;
-import akka.persistence.typed.PersistenceId;
-import akka.persistence.typed.javadsl.CommandHandler;
-import akka.persistence.typed.javadsl.CommandHandlerBuilder;
-import akka.persistence.typed.javadsl.Effect;
-import akka.persistence.typed.javadsl.EventHandler;
-import akka.persistence.typed.javadsl.EventSourcedBehavior;
-import akka.persistence.typed.javadsl.RetentionCriteria;
+import org.apache.pekko.actor.typed.ActorRef;
+import org.apache.pekko.actor.typed.Behavior;
+import org.apache.pekko.actor.typed.SupervisorStrategy;
+import org.apache.pekko.pattern.StatusReply;
+import org.apache.pekko.persistence.typed.PersistenceId;
+import org.apache.pekko.persistence.typed.javadsl.CommandHandler;
+import org.apache.pekko.persistence.typed.javadsl.CommandHandlerBuilder;
+import org.apache.pekko.persistence.typed.javadsl.Effect;
+import org.apache.pekko.persistence.typed.javadsl.EventHandler;
+import org.apache.pekko.persistence.typed.javadsl.EventSourcedBehavior;
+import org.apache.pekko.persistence.typed.javadsl.RetentionCriteria;
import com.fasterxml.jackson.annotation.JsonCreator;
import java.time.Duration;
diff --git a/akka-sample-persistence-java/src/main/resources/application.conf
b/pekko-sample-persistence-java/src/main/resources/application.conf
similarity index 63%
rename from akka-sample-persistence-java/src/main/resources/application.conf
rename to pekko-sample-persistence-java/src/main/resources/application.conf
index 880b362..be9ba64 100644
--- a/akka-sample-persistence-java/src/main/resources/application.conf
+++ b/pekko-sample-persistence-java/src/main/resources/application.conf
@@ -1,4 +1,4 @@
-akka {
+pekko {
loglevel = DEBUG
actor {
@@ -9,8 +9,8 @@ akka {
persistence {
# inmem only for tests
- journal.plugin = "akka.persistence.journal.inmem"
- snapshot-store.plugin = "akka.persistence.snapshot-store.local"
+ journal.plugin = "pekko.persistence.journal.inmem"
+ snapshot-store.plugin = "pekko.persistence.snapshot-store.local"
snapshot-store.local.dir = "target/snapshot"
}
}
diff --git a/akka-sample-persistence-java/src/main/resources/logback.xml
b/pekko-sample-persistence-java/src/main/resources/logback.xml
similarity index 100%
rename from akka-sample-persistence-java/src/main/resources/logback.xml
rename to pekko-sample-persistence-java/src/main/resources/logback.xml
diff --git
a/akka-sample-persistence-java/src/test/java/sample/persistence/ShoppingCartTest.java
b/pekko-sample-persistence-java/src/test/java/sample/persistence/ShoppingCartTest.java
similarity index 89%
rename from
akka-sample-persistence-java/src/test/java/sample/persistence/ShoppingCartTest.java
rename to
pekko-sample-persistence-java/src/test/java/sample/persistence/ShoppingCartTest.java
index fa02e41..28d854c 100644
---
a/akka-sample-persistence-java/src/test/java/sample/persistence/ShoppingCartTest.java
+++
b/pekko-sample-persistence-java/src/test/java/sample/persistence/ShoppingCartTest.java
@@ -1,9 +1,9 @@
package sample.persistence;
-import akka.actor.testkit.typed.javadsl.TestKitJunitResource;
-import akka.actor.testkit.typed.javadsl.TestProbe;
-import akka.actor.typed.ActorRef;
-import akka.pattern.StatusReply;
+import org.apache.pekko.actor.testkit.typed.javadsl.TestKitJunitResource;
+import org.apache.pekko.actor.testkit.typed.javadsl.TestProbe;
+import org.apache.pekko.actor.typed.ActorRef;
+import org.apache.pekko.pattern.StatusReply;
import org.junit.ClassRule;
import org.junit.Test;
@@ -19,9 +19,9 @@ public class ShoppingCartTest {
@ClassRule
public static final TestKitJunitResource testKit = new TestKitJunitResource(
- "akka.persistence.journal.plugin = \"akka.persistence.journal.inmem\" \n" +
- "akka.persistence.snapshot-store.plugin =
\"akka.persistence.snapshot-store.local\" \n" +
- "akka.persistence.snapshot-store.local.dir = \"target/snapshot-" +
UUID.randomUUID().toString() + "\" \n"
+ "pekko.persistence.journal.plugin = \"pekko.persistence.journal.inmem\"
\n" +
+ "pekko.persistence.snapshot-store.plugin =
\"pekko.persistence.snapshot-store.local\" \n" +
+ "pekko.persistence.snapshot-store.local.dir = \"target/snapshot-" +
UUID.randomUUID().toString() + "\" \n"
);
private static AtomicInteger counter = new AtomicInteger();
diff --git a/akka-sample-persistence-java/src/test/resources/logback-test.xml
b/pekko-sample-persistence-java/src/test/resources/logback-test.xml
similarity index 100%
rename from akka-sample-persistence-java/src/test/resources/logback-test.xml
rename to pekko-sample-persistence-java/src/test/resources/logback-test.xml
diff --git a/akka-sample-persistence-scala/.gitignore
b/pekko-sample-persistence-scala/.gitignore
similarity index 100%
rename from akka-sample-persistence-scala/.gitignore
rename to pekko-sample-persistence-scala/.gitignore
diff --git a/akka-sample-persistence-scala/COPYING
b/pekko-sample-persistence-scala/COPYING
similarity index 100%
rename from akka-sample-persistence-scala/COPYING
rename to pekko-sample-persistence-scala/COPYING
diff --git a/akka-sample-persistence-scala/LICENSE
b/pekko-sample-persistence-scala/LICENSE
similarity index 100%
rename from akka-sample-persistence-scala/LICENSE
rename to pekko-sample-persistence-scala/LICENSE
diff --git a/akka-sample-persistence-scala/README.md
b/pekko-sample-persistence-scala/README.md
similarity index 62%
rename from akka-sample-persistence-scala/README.md
rename to pekko-sample-persistence-scala/README.md
index 271cfef..8a36cab 100644
--- a/akka-sample-persistence-scala/README.md
+++ b/pekko-sample-persistence-scala/README.md
@@ -1,4 +1,4 @@
-This example illustrates event sourcing with [Akka
Persistence](https://pekko.apache.org/docs/pekko/current/typed/persistence.html).
+This example illustrates event sourcing with [Apache Pekko
Persistence](https://pekko.apache.org/docs/pekko/current/typed/persistence.html).
Study the source code of the
[ShoppingCart.scala](src/main/scala/sample/persistence/ShoppingCart.scala). A
few things
to note:
@@ -15,7 +15,7 @@ To run the tests, enter:
```
sbt
-sbt:akka-sample-persistence-scala> test
+sbt:pekko-sample-persistence-scala> test
```
-The `ShoppingCart` application is expanded further in the
`akka-sample-cqrs-scala` sample. In that sample the events are tagged to be
consumed by even processors to build other representations from the events, or
publish the events to other services.
+The `ShoppingCart` application is expanded further in the
`pekko-sample-cqrs-scala` sample. In that sample the events are tagged to be
consumed by even processors to build other representations from the events, or
publish the events to other services.
diff --git a/akka-sample-persistence-scala/build.sbt
b/pekko-sample-persistence-scala/build.sbt
similarity index 50%
rename from akka-sample-persistence-scala/build.sbt
rename to pekko-sample-persistence-scala/build.sbt
index b39bad6..4e445da 100644
--- a/akka-sample-persistence-scala/build.sbt
+++ b/pekko-sample-persistence-scala/build.sbt
@@ -1,14 +1,17 @@
-organization := "com.lightbend.akka.samples"
-name := "akka-sample-persistence-scala"
+organization := "org.apache.pekko"
+name := "pekko-sample-persistence-scala"
scalaVersion := "2.13.8"
-def akkaVersion = "2.6.20"
+def pekkoVersion = "0.0.0+26626-3e1231c3-SNAPSHOT"
+
+// allow access to snapshots
+resolvers += "Apache Nexus
Snapshots".at("https://repository.apache.org/content/groups/snapshots/")
libraryDependencies ++= Seq(
- "com.typesafe.akka" %% "akka-persistence-typed" % akkaVersion,
- "com.typesafe.akka" %% "akka-serialization-jackson" % akkaVersion,
+ "org.apache.pekko" %% "pekko-persistence-typed" % pekkoVersion,
+ "org.apache.pekko" %% "pekko-serialization-jackson" % pekkoVersion,
"ch.qos.logback" % "logback-classic" % "1.2.11",
- "com.typesafe.akka" %% "akka-actor-testkit-typed" % akkaVersion % Test,
+ "org.apache.pekko" %% "pekko-actor-testkit-typed" % pekkoVersion % Test,
"org.scalatest" %% "scalatest" % "3.1.0" % Test)
Compile / scalacOptions ++= Seq("-deprecation", "-feature", "-unchecked",
"-Xlog-reflective-calls", "-Xlint")
diff --git a/akka-sample-persistence-scala/project/build.properties
b/pekko-sample-persistence-scala/project/build.properties
similarity index 100%
rename from akka-sample-persistence-scala/project/build.properties
rename to pekko-sample-persistence-scala/project/build.properties
diff --git a/akka-sample-persistence-scala/project/plugins.sbt
b/pekko-sample-persistence-scala/project/plugins.sbt
similarity index 100%
rename from akka-sample-persistence-scala/project/plugins.sbt
rename to pekko-sample-persistence-scala/project/plugins.sbt
diff --git a/akka-sample-persistence-scala/src/main/resources/application.conf
b/pekko-sample-persistence-scala/src/main/resources/application.conf
similarity index 63%
rename from akka-sample-persistence-scala/src/main/resources/application.conf
rename to pekko-sample-persistence-scala/src/main/resources/application.conf
index 880b362..be9ba64 100644
--- a/akka-sample-persistence-scala/src/main/resources/application.conf
+++ b/pekko-sample-persistence-scala/src/main/resources/application.conf
@@ -1,4 +1,4 @@
-akka {
+pekko {
loglevel = DEBUG
actor {
@@ -9,8 +9,8 @@ akka {
persistence {
# inmem only for tests
- journal.plugin = "akka.persistence.journal.inmem"
- snapshot-store.plugin = "akka.persistence.snapshot-store.local"
+ journal.plugin = "pekko.persistence.journal.inmem"
+ snapshot-store.plugin = "pekko.persistence.snapshot-store.local"
snapshot-store.local.dir = "target/snapshot"
}
}
diff --git a/akka-sample-persistence-scala/src/main/resources/logback.xml
b/pekko-sample-persistence-scala/src/main/resources/logback.xml
similarity index 100%
rename from akka-sample-persistence-scala/src/main/resources/logback.xml
rename to pekko-sample-persistence-scala/src/main/resources/logback.xml
diff --git
a/akka-sample-persistence-scala/src/main/scala/sample/persistence/CborSerializable.scala
b/pekko-sample-persistence-scala/src/main/scala/sample/persistence/CborSerializable.scala
similarity index 100%
rename from
akka-sample-persistence-scala/src/main/scala/sample/persistence/CborSerializable.scala
rename to
pekko-sample-persistence-scala/src/main/scala/sample/persistence/CborSerializable.scala
diff --git
a/akka-sample-persistence-scala/src/main/scala/sample/persistence/ShoppingCart.scala
b/pekko-sample-persistence-scala/src/main/scala/sample/persistence/ShoppingCart.scala
similarity index 94%
rename from
akka-sample-persistence-scala/src/main/scala/sample/persistence/ShoppingCart.scala
rename to
pekko-sample-persistence-scala/src/main/scala/sample/persistence/ShoppingCart.scala
index 2e76149..a79c03b 100644
---
a/akka-sample-persistence-scala/src/main/scala/sample/persistence/ShoppingCart.scala
+++
b/pekko-sample-persistence-scala/src/main/scala/sample/persistence/ShoppingCart.scala
@@ -3,14 +3,14 @@ package sample.persistence
import java.time.Instant
import scala.concurrent.duration._
-import akka.actor.typed.ActorRef
-import akka.actor.typed.Behavior
-import akka.actor.typed.SupervisorStrategy
-import akka.pattern.StatusReply
-import akka.persistence.typed.PersistenceId
-import akka.persistence.typed.scaladsl.RetentionCriteria
-import akka.persistence.typed.scaladsl.Effect
-import akka.persistence.typed.scaladsl.EventSourcedBehavior
+import org.apache.pekko.actor.typed.ActorRef
+import org.apache.pekko.actor.typed.Behavior
+import org.apache.pekko.actor.typed.SupervisorStrategy
+import org.apache.pekko.pattern.StatusReply
+import org.apache.pekko.persistence.typed.PersistenceId
+import org.apache.pekko.persistence.typed.scaladsl.RetentionCriteria
+import org.apache.pekko.persistence.typed.scaladsl.Effect
+import org.apache.pekko.persistence.typed.scaladsl.EventSourcedBehavior
/**
* This is an event sourced actor. It has a state, [[ShoppingCart.State]],
which
diff --git a/akka-sample-persistence-scala/src/test/resources/logback-test.xml
b/pekko-sample-persistence-scala/src/test/resources/logback-test.xml
similarity index 100%
rename from akka-sample-persistence-scala/src/test/resources/logback-test.xml
rename to pekko-sample-persistence-scala/src/test/resources/logback-test.xml
diff --git
a/akka-sample-persistence-scala/src/test/scala/sample/persistence/ShoppingCartSpec.scala
b/pekko-sample-persistence-scala/src/test/scala/sample/persistence/ShoppingCartSpec.scala
similarity index 89%
rename from
akka-sample-persistence-scala/src/test/scala/sample/persistence/ShoppingCartSpec.scala
rename to
pekko-sample-persistence-scala/src/test/scala/sample/persistence/ShoppingCartSpec.scala
index 16789b0..77abf60 100644
---
a/akka-sample-persistence-scala/src/test/scala/sample/persistence/ShoppingCartSpec.scala
+++
b/pekko-sample-persistence-scala/src/test/scala/sample/persistence/ShoppingCartSpec.scala
@@ -2,14 +2,14 @@ package sample.persistence
import java.util.UUID
-import akka.actor.testkit.typed.scaladsl.ScalaTestWithActorTestKit
-import akka.pattern.StatusReply
+import org.apache.pekko.actor.testkit.typed.scaladsl.ScalaTestWithActorTestKit
+import org.apache.pekko.pattern.StatusReply
import org.scalatest.wordspec.AnyWordSpecLike
class ShoppingCartSpec extends ScalaTestWithActorTestKit(s"""
- akka.persistence.journal.plugin = "akka.persistence.journal.inmem"
- akka.persistence.snapshot-store.plugin =
"akka.persistence.snapshot-store.local"
- akka.persistence.snapshot-store.local.dir =
"target/snapshot-${UUID.randomUUID().toString}"
+ pekko.persistence.journal.plugin = "pekko.persistence.journal.inmem"
+ pekko.persistence.snapshot-store.plugin =
"pekko.persistence.snapshot-store.local"
+ pekko.persistence.snapshot-store.local.dir =
"target/snapshot-${UUID.randomUUID().toString}"
""") with AnyWordSpecLike {
private var counter = 0
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]