-
Notifications
You must be signed in to change notification settings - Fork 17
/
build.sbt
122 lines (107 loc) · 3.02 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
import bintray.Plugin._
organization in ThisBuild := "com.mfglabs"
scalaVersion in ThisBuild := "2.11.11"
version in ThisBuild := "0.12.2"
crossScalaVersions := Seq("2.11.11", "2.12.2")
resolvers in ThisBuild ++= Seq(
"Typesafe repository" at "http://repo.typesafe.com/typesafe/releases/",
Resolver.sonatypeRepo("releases"),
DefaultMavenRepository,
Resolver.bintrayRepo("mfglabs", "maven")
)
scalacOptions in ThisBuild ++= Seq(
"-encoding", "UTF-8",
"-target:jvm-1.8",
"-Ydelambdafy:method",
"-Yno-adapted-args",
"-deprecation",
"-feature",
"-language:postfixOps",
"-unchecked",
"-Xfuture",
"-Xlint",
"-Xlint:-missing-interpolator",
"-Xlint:private-shadow",
"-Xlint:type-parameter-shadow",
"-Ywarn-dead-code",
"-Ywarn-unused",
"-Ywarn-unused-import",
"-Ywarn-numeric-widen",
"-Ywarn-value-discard",
"-Xcheckinit"
)
publishMavenStyle in ThisBuild := true
lazy val commonSettings = Seq(
scmInfo := Some(ScmInfo(
url("https://github.com/MfgLabs/commons-aws"),
"[email protected]:MfgLabs/commons-aws.git"
))
)
lazy val publishSettings = Seq(
homepage := Some(url("https://github.com/MfgLabs/commons-aws")),
licenses := Seq("Apache-2.0" -> url("http://www.apache.org/licenses/LICENSE-2.0.html")),
autoAPIMappings := true,
publishMavenStyle := true,
publishArtifact in packageDoc := false,
publishArtifact in Test := false,
pomIncludeRepository := { _ => false }
) ++ bintrayPublishSettings
lazy val noPublishSettings = Seq(
publish := (),
publishLocal := (),
publishArtifact := false
)
lazy val all = (project in file("."))
.aggregate(commons)
.aggregate(cloudwatch)
.aggregate(s3)
.aggregate(sqs)
.settings(name := "commons-aws-all")
.enablePlugins(ScalaUnidocPlugin)
.settings(name := "commons-aws-all")
.settings(noPublishSettings)
lazy val commons = project.in(file("commons"))
.settings (
name := "commons-aws",
libraryDependencies ++= Seq(
Dependencies.Compile.awsJavaSDKcore
),
commonSettings,
publishSettings
)
lazy val cloudwatch = project.in(file("cloudwatch"))
.settings (
name := "commons-aws-cloudwatch",
libraryDependencies ++= Seq(
Dependencies.Compile.awsJavaSDKcw,
Dependencies.Compile.akkaStreamExt,
Dependencies.Compile.slf4j,
Dependencies.Test.scalaTest
),
commonSettings,
publishSettings
).dependsOn(commons)
lazy val s3 = project.in(file("s3"))
.settings (
name := "commons-aws-s3",
libraryDependencies ++= Seq(
Dependencies.Compile.awsJavaSDKs3,
Dependencies.Compile.akkaStreamExt,
Dependencies.Compile.slf4j,
Dependencies.Test.scalaTest
),
commonSettings,
publishSettings
).dependsOn(commons)
lazy val sqs = project.in(file("sqs"))
.settings (
name := "commons-aws-sqs",
libraryDependencies ++= Seq(
Dependencies.Compile.awsJavaSDKsqs,
Dependencies.Compile.akkaStreamExt,
Dependencies.Compile.slf4j,
Dependencies.Test.scalaTest
),
commonSettings,
publishSettings
).dependsOn(commons)