forked from xebia-functional/fetch
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
55 lines (45 loc) · 1.58 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
import sbtcrossproject.CrossPlugin.autoImport.{crossProject, CrossType}
pgpPassphrase := Some(getEnvVar("PGP_PASSPHRASE").getOrElse("").toCharArray)
pgpPublicRing := file(s"$gpgFolder/pubring.gpg")
pgpSecretRing := file(s"$gpgFolder/secring.gpg")
addCommandAlias("makeDocs", ";docs/makeMicrosite")
lazy val root = project
.in(file("."))
.settings(name := "fetch")
.settings(moduleName := "root")
.aggregate(fetchJS, fetchJVM, debugJVM, debugJS)
lazy val fetch = crossProject(JSPlatform, JVMPlatform)
.in(file("."))
.settings(name := "fetch")
.jsSettings(sharedJsSettings: _*)
.settings(commonCrossDependencies)
lazy val fetchJVM = fetch.jvm
lazy val fetchJS = fetch.js
lazy val debug = crossProject(JSPlatform, JVMPlatform)
.in(file("debug"))
.settings(name := "fetch-debug")
.dependsOn(fetch)
.jsSettings(sharedJsSettings: _*)
.settings(commonCrossDependencies)
lazy val debugJVM = debug.jvm
lazy val debugJS = debug.js
lazy val examples = (project in file("examples"))
.settings(name := "fetch-examples")
.dependsOn(fetchJVM, debugJVM)
.settings(noPublishSettings: _*)
.settings(examplesSettings: _*)
.settings(Seq(
resolvers += Resolver.sonatypeRepo("snapshots")
))
lazy val docs = (project in file("docs"))
.dependsOn(fetchJVM, debugJVM)
.settings(name := "fetch-docs")
.settings(docsSettings: _*)
.settings(noPublishSettings)
.enablePlugins(MicrositesPlugin)
lazy val readme = (project in file("tut"))
.settings(name := "fetch-readme")
.dependsOn(fetchJVM)
.settings(readmeSettings: _*)
.settings(noPublishSettings)
.enablePlugins(TutPlugin)