-
Notifications
You must be signed in to change notification settings - Fork 35
/
build.sbt
74 lines (56 loc) · 1.98 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
import LauncherConfigs._
import CommonUtils._
import PublicationDetails._
import Dependencies._
// ================================ Module definitions ================================ //
lazy val Sri = DefProject(".", "root")
.aggregate(core, addons, universal, web, mobile, mobileExamples, webExamples)
.configure(addCommandAliases(
"ct" -> "; test:compile ; core/test",
"wt" -> "; test:compile ; web/test",
"tt" -> "; test:compile ; test/test",
"T" -> "; clean ;t",
"TT" -> ";+clean ;tt"))
.settings(preventPublication)
lazy val core = DefProject("core")
.settings(coreModuleDeps)
.settings(publicationSettings)
lazy val addons = DefProject("addons")
.dependsOn(core)
.settings(publicationSettings)
lazy val universal = DefProject("universal")
.dependsOn(core)
.settings(publicationSettings)
lazy val web = DefProject("web")
.dependsOn(universal)
.settings(webModuleDeps)
.settings(publicationSettings)
lazy val mobile = DefProject("mobile")
.dependsOn(universal)
.settings(scalaJSModuleKind := ModuleKind.CommonJSModule)
.settings(mobileModuleDeps)
.settings(publicationSettings)
lazy val webExamples = DefProject("web-examples")
.dependsOn(web)
.settings(testModuleDeps)
.settings(webExamplesModuleDeps)
.settings(fastWebLauncher)
.settings(fullWebLauncher)
.settings(preventPublication)
lazy val mobileExamples = DefProject("mobile-examples")
.dependsOn(mobile)
.settings(mobilelauncherFull)
.settings(mobileLauncherFast)
.settings(mobileExamplesModuleDeps)
.settings(preventPublication)
lazy val tools = project
.settings(commonSettings)
.settings(name := "sri-tools")
.settings(preventPublication)
lazy val test = DefProject("test")
.dependsOn(web)
.settings(testModuleDeps)
.settings(scalatestJSSettings: _*)
.settings(preventPublication)
// workaround http://stackoverflow.com/questions/20931217/deprecation-and-feature-warnings-for-sbt-project-definition-files
scalacOptions ++= Seq("-unchecked", "-deprecation")