-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.sbt
73 lines (68 loc) · 2.04 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
lazy val commonSettings = Seq(
organization := "com.coding42",
name := "DynamoS",
description := "DynamoS is a Scala to DynamoDB conversion library",
version := "0.5.0",
scalaVersion := "2.12.9",
crossScalaVersions := Seq("2.11.12", "2.12.9", "2.13.1"),
scalacOptions ++= Seq(
"-unchecked",
"-deprecation",
"-feature",
"-Xfatal-warnings",
"-Ypartial-unification",
"-language:higherKinds"
)
)
lazy val testSettings = Seq(
startDynamoDBLocal := startDynamoDBLocal.dependsOn(compile in Test).value,
test in Test := (test in Test).dependsOn(startDynamoDBLocal).value,
testOnly in Test := (testOnly in Test)
.dependsOn(startDynamoDBLocal)
.evaluated,
testOptions in Test += dynamoDBLocalTestCleanup.value
)
lazy val publishSettings = Seq(
useGpgAgent := true,
homepage := Some(url("https://github.com/adrijardi/DynamoS")),
licenses := Seq(
"Apache 2.0" -> url("http://www.apache.org/licenses/LICENSE-2.0")
),
publishMavenStyle := true,
publishArtifact in Test := false,
pomIncludeRepository := { _ =>
false
},
publishTo := Some(
if (isSnapshot.value)
Opts.resolver.sonatypeSnapshots
else
Opts.resolver.sonatypeStaging
),
publishConfiguration := publishConfiguration.value.withOverwrite(true),
scmInfo := Some(
ScmInfo(
url("https://github.com/adrijardi/DynamoS"),
"scm:git@github.com:adrijardi/DynamoS.git"
)
),
developers := List(
Developer(
"adrijardi",
"Adrian Lopez",
"adrijardi@gmail.com",
url("http://coding42.com")
)
)
)
val awsSdkV = "2.5.65"
libraryDependencies ++= Seq(
"com.propensive" %% "magnolia" % "0.12.0",
"software.amazon.awssdk" % "dynamodb" % awsSdkV,
"org.scalatest" %% "scalatest" % "3.0.4" % Test,
"org.scala-lang" % "scala-compiler" % scalaVersion.value % Test,
"org.scala-lang.modules" %% "scala-java8-compat" % "0.9.0"
)
lazy val root = project
.in(file("."))
.settings(commonSettings ++ testSettings ++ publishSettings)