-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.sbt
76 lines (65 loc) · 3.38 KB
/
build.sbt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
import org.virtuslab.psh.PekkoSerializationHelperPlugin
name := "pekko-persistence-app"
scalaVersion := "2.13.15"
Compile / scalacOptions ++= Seq(
"-target:11",
"-deprecation",
"-feature",
"-unchecked",
"-Xlog-reflective-calls",
"-Xlint",
"-Ywarn-unused")
Compile / javacOptions ++= Seq("-Xlint:unchecked", "-Xlint:deprecation")
Test / parallelExecution := false
Test / logBuffered := false
fork := true // must be true due to https://discuss.lightbend.com/t/pekko-projection-getting-started-guide-example-could-not-run-eventgeneratorapp/9434/2
Global / cancelable := false // ctrl-c
ThisBuild / resolvers += Resolver.ApacheMavenSnapshotsRepo
val pekkoVersion = "1.1.2"
val pekkoHttpVersion = "1.1.0"
val pekkoManagementVersion = "1.1.0"
val pekkoPersistenceJdbcVersion = "1.1.0"
val pekkoProjectionVersion = "1.0.0"
val circeVersion = "0.14.10"
val scalikeJdbcVersion = "3.5.0"
enablePlugins(PekkoGrpcPlugin, JavaAppPackaging, DockerPlugin, PekkoSerializationHelperPlugin)
dockerBaseImage := "docker.io/library/adoptopenjdk:11-jre-hotspot"
dockerUsername := sys.props.get("docker.username")
dockerRepository := sys.props.get("docker.registry")
libraryDependencySchemes += "org.apache.pekko" %% "pekko-http-core" % "always"
libraryDependencies ++= Seq(
// 1. Basic dependencies for a clustered application
"org.apache.pekko" %% "pekko-stream" % pekkoVersion,
"org.apache.pekko" %% "pekko-cluster-typed" % pekkoVersion,
"org.apache.pekko" %% "pekko-cluster-sharding-typed" % pekkoVersion,
"org.apache.pekko" %% "pekko-actor-testkit-typed" % pekkoVersion % Test,
// Pekko Management powers Health Checks and Pekko Cluster Bootstrapping
"org.apache.pekko" %% "pekko-management" % pekkoManagementVersion,
"org.apache.pekko" %% "pekko-http" % pekkoHttpVersion,
"org.apache.pekko" %% "pekko-http-spray-json" % pekkoHttpVersion,
"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-discovery" % pekkoVersion,
// Common dependencies for logging and testing
"org.apache.pekko" %% "pekko-slf4j" % pekkoVersion,
"ch.qos.logback" % "logback-classic" % "1.5.15",
"org.scalatest" %% "scalatest" % "3.2.12" % Test,
// 3. Using Pekko Persistence
"org.apache.pekko" %% "pekko-persistence-typed" % pekkoVersion,
"org.apache.pekko" %% "pekko-serialization-jackson" % pekkoVersion,
"org.apache.pekko" %% "pekko-persistence-jdbc" % pekkoPersistenceJdbcVersion,
"org.apache.pekko" %% "pekko-persistence-testkit" % pekkoVersion % Test,
"org.postgresql" % "postgresql" % "42.7.4",
// 4. Querying or projecting data from Pekko Persistence
"org.apache.pekko" %% "pekko-persistence-query" % pekkoVersion,
"org.apache.pekko" %% "pekko-projection-eventsourced" % pekkoProjectionVersion,
"org.apache.pekko" %% "pekko-projection-jdbc" % pekkoProjectionVersion,
"org.scalikejdbc" %% "scalikejdbc" % scalikeJdbcVersion,
"org.scalikejdbc" %% "scalikejdbc-config" % scalikeJdbcVersion,
// 5. Dependencies needed to use Pekko Serialization Helper with circe codecs
"io.circe" %% "circe-core" % circeVersion,
PekkoSerializationHelperPlugin.annotation,
PekkoSerializationHelperPlugin.circePekkoSerializer)
ThisBuild / semanticdbEnabled := true
ThisBuild / semanticdbVersion := "4.9.3"