=cls #17846 Use provided scope for the distributed-data dependency
This commit is contained in:
parent
0796c72d7e
commit
50d7b1553a
2 changed files with 8 additions and 1 deletions
|
|
@ -110,6 +110,9 @@ final class ClusterShardingSettings(
|
|||
val tuningParameters: ClusterShardingSettings.TuningParameters,
|
||||
val coordinatorSingletonSettings: ClusterSingletonManagerSettings) extends NoSerializationVerificationNeeded {
|
||||
|
||||
require(stateStoreMode == "persistence" || stateStoreMode == "ddata",
|
||||
s"Unknown 'state-store-mode' [$stateStoreMode], valid values are 'persistence' or 'ddata'")
|
||||
|
||||
def withRole(role: String): ClusterShardingSettings = copy(role = ClusterShardingSettings.roleOption(role))
|
||||
|
||||
def withRole(role: Option[String]): ClusterShardingSettings = copy(role = role)
|
||||
|
|
|
|||
|
|
@ -135,8 +135,12 @@ object AkkaBuild extends Build {
|
|||
lazy val clusterSharding = Project(
|
||||
id = "akka-cluster-sharding",
|
||||
base = file("akka-cluster-sharding"),
|
||||
// TODO akka-distributed-data dependency should be provided in pom.xml artifact.
|
||||
// If I only use "provided" here it works, but then we can't run tests.
|
||||
// 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",
|
||||
persistence % "compile;test->provided", distributedData % "compile;test->provided", clusterTools)
|
||||
persistence % "compile;test->provided", distributedData % "provided;test", clusterTools)
|
||||
) configs (MultiJvm)
|
||||
|
||||
lazy val distributedData = Project(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue