-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
44 lines (40 loc) · 1.55 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
val commonSettings = Seq(
version := "0.1",
scalaVersion := "2.12.13"
// Add other settings that are common to both projects
)
// Define the DataProcessingApplication project
lazy val dataProcessingApplication = (project in file("data-processing"))
.settings(
commonSettings,
name := "DataProcessingApp",
mainClass in (Compile, run) := Some("com.app.DataProcessingApplication"),
libraryDependencies ++= Seq(
"org.apache.spark" %% "spark-core" % "3.0.2",
"org.apache.spark" %% "spark-sql" % "3.0.2" % "provided",
"org.apache.spark" %% "spark-mllib" % "3.0.2" % "provided",
"io.delta" %% "delta-core" % "1.0.0",
"org.slf4j" % "slf4j-api" % "1.7.25"
)
)
// Define the DelayPredictionApplication project
lazy val delayPredictionApplication = (project in file("delay-prediction"))
.settings(
commonSettings,
name := "DelayPredictionApp",
mainClass in (Compile, run) := Some("com.app.DelayPredictionApplication"),
libraryDependencies ++= Seq(
"org.apache.spark" %% "spark-core" % "3.0.2",
"org.apache.spark" %% "spark-sql" % "3.0.2" % "provided",
"org.apache.spark" %% "spark-mllib" % "3.0.2" % "provided",
"io.delta" %% "delta-core" % "1.0.0",
"org.slf4j" % "slf4j-api" % "1.7.25"
)
)
// Define the root project which aggregates the two applications
lazy val root = (project in file("."))
.aggregate(dataProcessingApplication, delayPredictionApplication)
.settings(
publish := {},
publishLocal := {}
)