-
Notifications
You must be signed in to change notification settings - Fork 8
/
build.sbt
65 lines (59 loc) · 2.68 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
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* license agreements; and to You under the Apache License, version 2.0:
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* This file is part of the Apache Pekko project, which was derived from Akka.
*/
import com.github.pjfanning.pekkobuild._
import net.bzzt.reproduciblebuilds.ReproducibleBuildsPlugin.reproducibleBuildsCheckResolver
val amzVersion = "1.12.779"
val testcontainersScalaVersion = "0.41.4"
ThisBuild / versionScheme := Some(VersionScheme.SemVerSpec)
sourceDistName := "apache-pekko-persistence-dynamodb"
sourceDistIncubating := false
ThisBuild / reproducibleBuildsCheckResolver := Resolver.ApacheMavenStagingRepo
Test / unmanagedSourceDirectories ++= {
if (scalaVersion.value.startsWith("2.")) {
Seq(
(LocalRootProject / baseDirectory).value / "src" / "test" / "scala-2")
} else {
Seq.empty
}
}
lazy val root = Project(
id = "pekko-persistence-dynamodb",
base = file("."))
.enablePlugins(ReproducibleBuildsPlugin)
.addPekkoModuleDependency("pekko-persistence", "", PekkoCoreDependency.default)
.addPekkoModuleDependency("pekko-persistence-query", "", PekkoCoreDependency.default)
.addPekkoModuleDependency("pekko-stream", "", PekkoCoreDependency.default)
.addPekkoModuleDependency("pekko-persistence-tck", "test", PekkoCoreDependency.default)
.addPekkoModuleDependency("pekko-testkit", "test", PekkoCoreDependency.default)
.addPekkoModuleDependency("pekko-stream-testkit", "test", PekkoCoreDependency.default)
.settings(
name := "pekko-persistence-dynamodb",
scalaVersion := "2.13.15",
crossScalaVersions := Seq("2.12.20", "2.13.15", "3.3.4"),
crossVersion := CrossVersion.binary,
libraryDependencies ++= Seq(
"com.amazonaws" % "aws-java-sdk-core" % amzVersion,
"com.amazonaws" % "aws-java-sdk-dynamodb" % amzVersion,
"javax.xml.bind" % "jaxb-api" % "2.3.1", // see https://github.com/seek-oss/gradle-aws-plugin/issues/15
"org.scalatest" %% "scalatest" % "3.2.19" % "test",
"commons-io" % "commons-io" % "2.18.0" % Test,
"org.hdrhistogram" % "HdrHistogram" % "2.2.2" % Test,
"com.dimafeng" %% "testcontainers-scala-scalatest" % testcontainersScalaVersion % Test),
scalacOptions ++= Seq("-deprecation", "-feature"),
Test / parallelExecution := false,
// required by test-containers-scala
Test / fork := true,
logBuffered := false,
Test / testOptions += Tests.Argument(TestFrameworks.ScalaTest, "-oDF"),
onLoad := {
sLog.value.info(
s"Building Pekko Persistence DynamoDB ${version.value} against Pekko ${PekkoCoreDependency.version} on Scala ${scalaVersion.value}")
onLoad.value
}
)