forked from almond-sh/almond
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
154 lines (141 loc) · 2.93 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
import Aliases._
import Settings._
lazy val api = project
.settings(
shared,
scalaPrefix,
crossVersion := CrossVersion.full,
libs ++= Seq(
Deps.ammoniumRuntime,
Deps.kernelApi,
Deps.scalaReflect.value,
Deps.pprint
),
scalaXmlIfNeeded,
jupyterScalaBuildInfoSettingsIn("jupyter.scala")
)
lazy val kernel = project
.dependsOn(api)
.settings(
shared,
scalaPrefix,
testSettings,
crossVersion := CrossVersion.full,
libs ++= Seq(
Deps.kernel,
Deps.ammoniumCompiler
)
)
lazy val cli = project
.dependsOn(kernel)
.settings(
shared,
scalaPrefix,
packAutoSettings,
crossVersion := CrossVersion.full,
libs ++= Seq(
Deps.caseApp,
Deps.logback
)
)
lazy val `spark-stubs-1` = project
.in(file("spark/stubs-1.x"))
.settings(
shared,
libs += Deps.sparkSql1 % "provided",
disableScalaVersion("2.12")
)
lazy val `spark-stubs-2` = project
.in(file("spark/stubs-2.x"))
.settings(
shared,
libs += Deps.sparkSql % "provided",
disableScalaVersion("2.12")
)
lazy val spark = project
.in(file("spark/core"))
.dependsOn(api % "provided")
.settings(
shared,
libs ++= Seq(
Deps.sparkSql % "provided",
Deps.jettyServer,
Deps.coursierCli
),
disableScalaVersion("2.12"),
jupyterScalaBuildInfoSettingsIn("jupyter.spark.internals")
)
lazy val `spark-tests` = project
.dependsOn(api)
.in(file("spark/tests"))
.settings(
shared,
dontPublish,
testSettings,
classpathTypes += "test-jar",
libs ++= Seq(
// FIXME Going hoops and loops to get that one (because of coursier?),
// to be fine when pulling artifacts from both sonatype and ~/.ivy2/local
Deps.ammonium,
Deps.ammonium % "compile->test",
Deps.ammonium classifier "tests"
)
)
lazy val flink = project
.dependsOn(api % "provided")
.settings(
shared,
libs ++= Seq(
Deps.flinkRuntime,
Deps.flinkClients,
Deps.flinkScala,
Deps.asm // don't know why we have to manually pull this one
),
disableScalaVersion("2.12")
)
lazy val `flink-yarn` = project
.dependsOn(flink, api % "provided")
.settings(
shared,
libs ++= Seq(
Deps.coursierCli,
Deps.flinkYarn
),
disableScalaVersion("2.12")
)
lazy val scio = project
.dependsOn(api % "provided")
.settings(
shared,
libs ++= {
Seq(
Deps.slf4jSimple,
Deps.jline.value,
Deps.scalaCompiler.value,
Deps.scalaReflect.value,
Deps.kantanCsv,
Deps.macroParadise,
Deps.scioCore,
Deps.scioExtra
)
},
disableScalaVersion("2.12")
)
lazy val `jupyter-scala` = project
.in(root)
.aggregate(
api,
kernel,
cli,
`spark-stubs-1`,
`spark-stubs-2`,
spark,
`spark-tests`,
flink,
`flink-yarn`,
scio
)
.settings(
shared,
dontPublish
)