forked from DS12/scala-class
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
106 lines (87 loc) · 2.92 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
name := "scala-class"
import sbtassembly.AssemblyPlugin._
// Layout influenced by https://github.com/TrueCar/mleap/blob/master/build.sbt
// spIgnoreProvided := true
lazy val root = project.in(file(".")).
settings(Common.settings).
settings(unidocSettings: _*).
settings(Common.additionalUnidocSettings).
aggregate(
common, slideCode,
lab, labAnswer,
tutorial, tutorialAnswer, tutorialCommon,
misc, miscAnswer, miscCommon
)
lazy val common = (project in file("common")).
settings(
name := "common",
scalaVersion := Common.scalaVer,
description := "All non-Spark-related sub-projects are dependent on the 'common' sub-project. Our versions of FP in Scala classes go in here. Boilerplate goes in here."
).settings(Common.settings)
lazy val slideCode = (project in file("slideCode")).
settings(
name := "slideCode",
scalaVersion := Common.scalaVer
).settings(Common.settings).dependsOn(common)
lazy val lab = (project in file("lab")).
settings(
name := "lab",
scalaVersion := Common.scalaVer,
description := "Lab exercises"
).settings(Common.settings).dependsOn(common)
lazy val labAnswer = (project in file("labAnswer")).
settings(
name := "labAnswer",
scalaVersion := Common.scalaVer,
description := "Lab answers"
).settings(Common.settings).dependsOn(common)
lazy val tutorialCommon = (project in file("tutorialCommon")).
settings(
name := "tutorialCommon",
scalaVersion := Common.scalaVer,
description := "Tutorial common"
).settings(Common.settings).dependsOn(common)//.dependsOn(labAnswer)
lazy val tutorial = (project in file("tutorial")).
settings(
name := "tutorial",
scalaVersion := Common.scalaVer,
description := "Tutorial exercises"
).
settings(Common.settings).
dependsOn(common).
dependsOn(tutorialCommon % "compile->compile;test->test").
dependsOn(lab)
lazy val tutorialAnswer = (project in file("tutorialAnswer")).
settings(
name := "tutorialAnswer",
scalaVersion := Common.scalaVer,
description := "Tutorial answers"
).
settings(Common.settings).
dependsOn(common).
dependsOn(tutorialCommon % "compile->compile;test->test").
dependsOn(labAnswer)
lazy val miscCommon = (project in file("miscCommon")).
settings(
name := "miscCommon",
scalaVersion := Common.scalaVer,
description := "Miscellaneous common"
).settings(Common.settings).dependsOn(common)
lazy val misc = (project in file("misc")).
settings(
name := "misc",
scalaVersion := Common.scalaVer,
description := "Miscellaneous"
).
settings(Common.settings).
dependsOn(common).
dependsOn(miscCommon % "compile->compile;test->test")
lazy val miscAnswer = (project in file("miscAnswer")).
settings(
name := "miscAnswer",
scalaVersion := Common.scalaVer,
description := "Miscellaneous answers"
).
settings(Common.settings).
dependsOn(common).
dependsOn(miscCommon % "compile->compile;test->test")