forked from akka/akka-persistence-r2dbc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dependencies.scala
88 lines (75 loc) · 3.35 KB
/
Dependencies.scala
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
77
78
79
80
81
82
83
84
85
86
87
88
/*
* Copyright (C) 2022 Lightbend Inc. <https://www.lightbend.com>
*/
import sbt._
object Dependencies {
val Scala213 = "2.13.12"
val Scala3 = "3.3.1"
val Scala2Versions = Seq(Scala213)
val ScalaVersions = Dependencies.Scala2Versions :+ Dependencies.Scala3
val AkkaVersion = System.getProperty("override.akka.version", "2.9.1")
val AkkaVersionInDocs = AkkaVersion.take(3)
val AkkaPersistenceJdbcVersion = "5.2.0" // only in migration tool tests
val AkkaProjectionVersionInDocs = "current"
val H2Version = "2.2.224"
val R2dbcH2Version = "1.0.0.RELEASE"
val SqlServerVersion = "1.0.2.RELEASE"
object Compile {
val akkaActorTyped = "com.typesafe.akka" %% "akka-actor-typed" % AkkaVersion
val akkaStream = "com.typesafe.akka" %% "akka-stream" % AkkaVersion
val akkaPersistence = "com.typesafe.akka" %% "akka-persistence-typed" % AkkaVersion
val akkaPersistenceQuery = "com.typesafe.akka" %% "akka-persistence-query" % AkkaVersion
val r2dbcSpi = "io.r2dbc" % "r2dbc-spi" % "1.0.0.RELEASE" // ApacheV2
val r2dbcPool = "io.r2dbc" % "r2dbc-pool" % "1.0.1.RELEASE" // ApacheV2
val r2dbcPostgres = "org.postgresql" % "r2dbc-postgresql" % "1.0.4.RELEASE" // ApacheV2
val h2 = "com.h2database" % "h2" % H2Version % Provided // EPL 1.0
val r2dbcH2 = "io.r2dbc" % "r2dbc-h2" % R2dbcH2Version % Provided // ApacheV2
val r2dbcSqlServer = "io.r2dbc" % "r2dbc-mssql" % SqlServerVersion % Provided // ApacheV2
}
object TestDeps {
val akkaStreamTyped = "com.typesafe.akka" %% "akka-stream-typed" % AkkaVersion % Test
val akkaPersistenceTyped = "com.typesafe.akka" %% "akka-persistence-typed" % AkkaVersion % Test
val akkaShardingTyped = "com.typesafe.akka" %% "akka-cluster-sharding-typed" % AkkaVersion % Test
val akkaPersistenceTck = "com.typesafe.akka" %% "akka-persistence-tck" % AkkaVersion % Test
val akkaTestkit = "com.typesafe.akka" %% "akka-actor-testkit-typed" % AkkaVersion % Test
val akkaStreamTestkit = "com.typesafe.akka" %% "akka-stream-testkit" % AkkaVersion % Test
val akkaJackson = "com.typesafe.akka" %% "akka-serialization-jackson" % AkkaVersion % Test
val postgresql = "org.postgresql" % "postgresql" % "42.7.1" % Test // BSD-2-Clause
val logback = "ch.qos.logback" % "logback-classic" % "1.2.13" % Test // EPL 1.0 / LGPL 2.1
val scalaTest = "org.scalatest" %% "scalatest" % "3.2.12" % Test // ApacheV2
val junit = "junit" % "junit" % "4.12" % Test // Eclipse Public License 1.0
val junitInterface = "com.novocode" % "junit-interface" % "0.11" % Test // "BSD 2-Clause"
}
import Compile._
val core = Seq(
akkaPersistence,
akkaPersistenceQuery,
r2dbcSpi,
r2dbcPool,
r2dbcPostgres,
h2,
r2dbcH2,
r2dbcSqlServer,
TestDeps.akkaPersistenceTck,
TestDeps.akkaStreamTestkit,
TestDeps.akkaTestkit,
TestDeps.akkaJackson,
TestDeps.akkaStreamTyped,
TestDeps.logback,
TestDeps.scalaTest)
val migrationTests =
Seq(
"com.lightbend.akka" %% "akka-persistence-jdbc" % AkkaPersistenceJdbcVersion % Test,
TestDeps.postgresql,
TestDeps.logback,
TestDeps.scalaTest,
h2,
r2dbcH2,
r2dbcSqlServer)
val docs =
Seq(
// r2dbcPostgres is already a transitive dependency from core, but
// sometimes sbt doesn't understand that ¯\_(ツ)_/¯
r2dbcPostgres,
TestDeps.akkaPersistenceTyped)
}