-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.sbt
More file actions
97 lines (78 loc) · 2.18 KB
/
build.sbt
File metadata and controls
97 lines (78 loc) · 2.18 KB
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
89
90
91
92
93
94
95
96
97
import sbt.Keys.{name, publishArtifact, testOptions, _}
import sbt.Resolver
val projectName = "lambda-samples"
val projectOrg = "com.virtuslab"
val projectVersion = "1.0-SNAPSHOT"
name := projectName
lazy val commonSettings = Seq(
organization := projectOrg,
version := projectVersion,
scalaVersion := "2.12.2",
retrieveManaged := true,
libraryDependencies ++= Seq(
// AWS api
"com.amazonaws" % "aws-lambda-java-core" % "1.1.0",
"com.amazonaws" % "aws-lambda-java-events" % "1.3.0",
"org.json4s" %% "json4s-jackson" % "3.5.1",
"org.scalatest" %% "scalatest" % "3.0.0" % "test",
// Lambda client libs
"com.amazonaws" % "aws-java-sdk-lambda" % "1.11.123"
),
scalacOptions := Seq("-Xfatal-warnings", "-feature", "-deprecation"),
fork in (Test, run) := true,
//do not generate scaladoc in dist task
sources in (Compile,doc) := Seq.empty,
publishArtifact in (Compile, packageDoc) := false,
resolvers ++= Seq(
Resolver.sonatypeRepo("snapshots")
),
testOptions in Test += Tests.Argument("-oDF")
)
lazy val root = (project in file(".")).
settings(commonSettings: _*).
settings(
name := projectName,
organization := projectOrg,
version := projectVersion
).
aggregate(
bareHello
)
lazy val bareHello = (project in file("bare-hello")).
settings(commonSettings: _*).
settings(
name := "bare-hello",
libraryDependencies ++= Seq(
)
)
lazy val httpHello = (project in file("http-hello")).
settings(commonSettings: _*).
settings(
name := "http-hello",
libraryDependencies ++= Seq(
)
)
assemblyMergeStrategy in assembly := {
case PathList("META-INF", xs @ _*) => MergeStrategy.discard
case _ => MergeStrategy.first
}
scalastyleConfig := baseDirectory.value / "plugins-conf" / "scalastyle-config.xml"
wartremoverErrors ++= Seq(
// Wart.Any,
Wart.Any2StringAdd,
Wart.AsInstanceOf,
Wart.EitherProjectionPartial,
Wart.IsInstanceOf,
Wart.ListOps,
// Wart.NonUnitStatements,
Wart.Null,
// Wart.OptionPartial,
// Wart.Product,
Wart.Return,
// Wart.Serializable,
// Wart.Throw,
Wart.TryPartial,
Wart.While,
Wart.Var,
Wart.JavaConversions
)