From a8f340508b251533bc60262d74de45b9cd0c3d33 Mon Sep 17 00:00:00 2001 From: Patrik Nordwall Date: Wed, 25 Jan 2017 21:44:18 +0100 Subject: [PATCH] fix sharding dependency to persistence * can't make the dependency provided or test and still be able to compile/run tests * might not be a big deal to include the persistence dependency instead --- akka-docs/rst/java/cluster-sharding.rst | 4 ---- akka-docs/rst/scala/cluster-sharding.rst | 3 --- project/AkkaBuild.scala | 2 +- 3 files changed, 1 insertion(+), 8 deletions(-) diff --git a/akka-docs/rst/java/cluster-sharding.rst b/akka-docs/rst/java/cluster-sharding.rst index d1d3d0cf99..f8042fe203 100644 --- a/akka-docs/rst/java/cluster-sharding.rst +++ b/akka-docs/rst/java/cluster-sharding.rst @@ -234,10 +234,6 @@ This mode is enabled with configuration:: Since it is running in a cluster :ref:`persistence-java` must be configured with a distributed journal. -You must explicitly add the ``akka-persistence`` dependency to your build if -you use this mode. - - Startup after minimum number of members --------------------------------------- diff --git a/akka-docs/rst/scala/cluster-sharding.rst b/akka-docs/rst/scala/cluster-sharding.rst index 2e2cccc94e..b2bc0fcd30 100644 --- a/akka-docs/rst/scala/cluster-sharding.rst +++ b/akka-docs/rst/scala/cluster-sharding.rst @@ -237,9 +237,6 @@ This mode is enabled with configuration:: Since it is running in a cluster :ref:`persistence-scala` must be configured with a distributed journal. -You must explicitly add the ``akka-persistence`` dependency to your build if -you use this mode. - Startup after minimum number of members --------------------------------------- diff --git a/project/AkkaBuild.scala b/project/AkkaBuild.scala index 2299726aea..0c1ca8d139 100644 --- a/project/AkkaBuild.scala +++ b/project/AkkaBuild.scala @@ -180,7 +180,7 @@ object AkkaBuild extends Build { // Scope "test" is alright in the pom.xml, but would have been nicer with // provided. dependencies = Seq(cluster % "compile->compile;test->test;multi-jvm->multi-jvm", - distributedData % "compile;test->provided", persistence % "provided;test", clusterTools) + distributedData, persistence % "compile;test->provided", clusterTools) ).configs(MultiJvm) lazy val distributedData = Project(