Skip to content

Commit

Permalink
PL-7208 Implement cluster ActorRef wrapper to ensure JSON serialisation
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiy0 committed Jul 25, 2018
1 parent d545d3f commit d99f6ee
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 4 deletions.
3 changes: 2 additions & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ lazy val commonSettings = Seq(
"-feature",
"-unchecked",
"-deprecation",
"-Xfatal-warnings",
// "-Xfatal-warnings",
"-Xlint",
"-Yno-adapted-args",
"-Ywarn-dead-code",
Expand Down Expand Up @@ -63,6 +63,7 @@ lazy val cluster = (project
ConfigTools,
Nel,
scalax,
PlayJson,
MockitoCore % Test,
ScalaTest % Test))
settings allSettings)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package com.evolutiongaming.cluster
import com.evolutiongaming.test.ActorSpec
import org.scalatest.concurrent.ScalaFutures
import org.scalatest.{Matchers, WordSpec}
import play.api.libs.json.Format

class ShardedRefSpec extends WordSpec with ActorSpec with ScalaFutures with Matchers {

Expand Down Expand Up @@ -69,9 +70,13 @@ class ShardedRefSpec extends WordSpec with ActorSpec with ScalaFutures with Matc

implicit def duration = timeout.duration

case object In
case object Out
case object Unsafe
sealed trait Msg

case object In extends Msg
case object Out extends Msg
case object Unsafe extends Msg

implicit val MsgFormat: Format[Msg] = null
}

private trait ImplScope extends Scope {
Expand Down
6 changes: 6 additions & 0 deletions project/Dependencies.scala
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ object Dependencies {
val TestKit = "com.typesafe.akka" %% "akka-testkit" % version
}

lazy val PlayJson = "com.typesafe.play" %% "play-json" % "2.6.9" % Compile excludeAll (
ExclusionRule("org.scala-lang", "scala-reflect"),
ExclusionRule("com.fasterxml.jackson.core", "jackson-annotations"),
ExclusionRule("com.fasterxml.jackson.core", "jackson-core"),
ExclusionRule("com.fasterxml.jackson.core", "jackson-databind"))

lazy val ScalaTest = "org.scalatest" %% "scalatest" % "3.0.5"
lazy val MetricTools = "com.evolutiongaming" %% "metric-tools" % "1.1"
lazy val MetricsCore = "io.dropwizard.metrics" % "metrics-core" % "3.2.6"
Expand Down

0 comments on commit d99f6ee

Please sign in to comment.