forked from akka/alpakka
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
181 lines (162 loc) · 4.72 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
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
lazy val alpakka = project
.in(file("."))
.enablePlugins(PublishUnidoc)
.aggregate(amqp,
awslambda,
cassandra,
csv,
dynamodb,
files,
ftp,
googleCloudPubSub,
hbase,
ironmq,
jms,
mqtt,
s3,
simpleCodecs,
sns,
sqs,
sse)
lazy val amqp = project
.enablePlugins(AutomateHeaderPlugin)
.settings(
name := "akka-stream-alpakka-amqp",
Dependencies.Amqp
)
lazy val awslambda = project
.enablePlugins(AutomateHeaderPlugin)
.settings(
name := "akka-stream-alpakka-awslambda",
Dependencies.AwsLambda
)
lazy val cassandra = project
.enablePlugins(AutomateHeaderPlugin)
.settings(
name := "akka-stream-alpakka-cassandra",
Dependencies.Cassandra
)
lazy val csv = project
.enablePlugins(AutomateHeaderPlugin)
.settings(
name := "akka-stream-alpakka-csv",
Dependencies.Csv
)
lazy val dynamodb = project
.enablePlugins(AutomateHeaderPlugin)
.settings(
name := "akka-stream-alpakka-dynamodb",
Dependencies.DynamoDB
)
lazy val files = project // The name file is taken by `sbt.file`!
.in(file("file"))
.enablePlugins(AutomateHeaderPlugin)
.settings(
name := "akka-stream-alpakka-file",
Dependencies.File
)
lazy val ftp = project
.enablePlugins(AutomateHeaderPlugin)
.settings(
name := "akka-stream-alpakka-ftp",
Dependencies.Ftp,
parallelExecution in Test := false
)
lazy val googleCloudPubSub = project
.in(file("google-cloud-pub-sub"))
.enablePlugins(AutomateHeaderPlugin)
.settings(
name := "akka-stream-alpakka-google-cloud-pub-sub",
Dependencies.GooglePubSub
)
lazy val hbase = project
.enablePlugins(AutomateHeaderPlugin)
.settings(
name := "akka-stream-alpakka-hbase",
Dependencies.HBase,
fork in Test := true
)
lazy val ironmq = project
.enablePlugins(AutomateHeaderPlugin)
.settings(
name := "akka-stream-alpakka-ironmq",
Dependencies.IronMq
)
lazy val jms = project
.enablePlugins(AutomateHeaderPlugin)
.settings(
name := "akka-stream-alpakka-jms",
Dependencies.Jms,
parallelExecution in Test := false
)
lazy val mqtt = project
.enablePlugins(AutomateHeaderPlugin)
.settings(
name := "akka-stream-alpakka-mqtt",
Dependencies.Mqtt
)
lazy val s3 = project
.enablePlugins(AutomateHeaderPlugin)
.settings(
name := "akka-stream-alpakka-s3",
Dependencies.S3
)
lazy val simpleCodecs = project
.in(file("simple-codecs"))
.enablePlugins(AutomateHeaderPlugin)
.settings(
name := "akka-stream-alpakka-simple-codecs"
)
lazy val sns = project
.enablePlugins(AutomateHeaderPlugin)
.settings(
name := "akka-stream-alpakka-sns",
Dependencies.Sns
)
lazy val sqs = project
.in(file("sqs"))
.enablePlugins(AutomateHeaderPlugin)
.settings(
name := "akka-stream-alpakka-sqs",
Dependencies.Sqs
)
lazy val sse = project
.enablePlugins(AutomateHeaderPlugin)
.settings(
name := "akka-stream-alpakka-sse",
Dependencies.Sse
)
val Local = config("local")
val defaultParadoxSettings: Seq[Setting[_]] = Seq(
paradoxTheme := Some(builtinParadoxTheme("generic")),
paradoxProperties ++= Map(
"version" -> version.value,
"scalaVersion" -> scalaVersion.value,
"scalaBinaryVersion" -> scalaBinaryVersion.value,
"akkaVersion" -> Dependencies.AkkaVersion,
"akkaHttpVersion" -> Dependencies.AkkaHttpVersion,
"extref.akka-docs.base_url" -> s"http://doc.akka.io/docs/akka/${Dependencies.AkkaVersion}/%s",
"extref.akka-http-docs.base_url" -> s"http://doc.akka.io/docs/akka-http/${Dependencies.AkkaHttpVersion}/%s",
"extref.java-api.base_url" -> "https://docs.oracle.com/javase/8/docs/api/index.html?%s.html",
"extref.paho-api.base_url" -> "https://www.eclipse.org/paho/files/javadoc/index.html?%s.html",
"scaladoc.akka.base_url" -> s"http://doc.akka.io/api/akka/${Dependencies.AkkaVersion}",
"scaladoc.akka.stream.alpakka.base_url" -> s"http://developer.lightbend.com/docs/api/alpakka/${version.value}"
),
sourceDirectory := baseDirectory.value / "src" / "main"
)
lazy val docs = project
.enablePlugins(ParadoxPlugin, NoPublish)
.disablePlugins(BintrayPlugin)
.settings(
name := "Alpakka",
inConfig(Compile)(defaultParadoxSettings),
ParadoxPlugin.paradoxSettings(Local),
inConfig(Local)(defaultParadoxSettings),
paradoxProperties in Local ++= Map(
// point API doc links to locally generated API docs
"scaladoc.akka.stream.alpakka.base_url" -> rebase(
(baseDirectory in alpakka).value,
"../../../../../"
)((sbtunidoc.Plugin.UnidocKeys.unidoc in alpakka in Compile).value.head).get
)
)