-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.sbt
64 lines (58 loc) · 2.24 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
lazy val alpakkaIntegrationPatterns = project
.in(file("."))
.aggregate(
jmsToFile,
ftpSamples
)
.settings(
onLoadMessage :=
"""
|** Welcome to Alpakka Integration patterns! **
|
|Useful sbt tasks:
|
| previewSite - opens the site in web browser
| (sbt-site plugin)
|
| docs/ghpagesPushSite - creates the site in gh-pages branch
| and pushes it to Github
| (sbt-ghpages plugin)
""".stripMargin
)
lazy val playground = project
.in(file("playground"))
lazy val csvSamples = project
.in(file("csv-samples"))
lazy val jmsToFile = project
.in(file("jms-to-file"))
.dependsOn(playground)
lazy val ftpSamples = project
.in(file("ftp-samples"))
.dependsOn(playground)
val Local = config("local")
val defaultParadoxSettings: Seq[Setting[_]] = Seq(
paradoxTheme := Some(builtinParadoxTheme("generic")),
paradoxProperties ++= Map(
"version" -> version.value,
"AkkaVersion" -> Dependencies.AkkaVersion,
"AkkaHttpVersion" -> Dependencies.AkkaHttpVersion,
"AkkaKafkaVersion" -> Dependencies.AkkaKafkaVersion,
"AlpakkaVersion" -> Dependencies.AlpakkaVersion,
"scala.binaryVersion" -> scalaBinaryVersion.value,
"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.alpakka-docs.base_url" -> s"http://developer.lightbend.com/docs/alpakka/${Dependencies.AlpakkaVersion}/%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, ParadoxSitePlugin, GhpagesPlugin)
.settings(
name := "Alpakka Integration Patterns",
defaultParadoxSettings,
git.remoteRepo := scmInfo.value.get.connection
)