-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
104 lines (91 loc) · 2.83 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
import Common._
inThisBuild(
CommonSettings
)
lazy val aggregatedProjects: Seq[ProjectReference] = Seq(
`dms-metadata-access`,
`dms-metadata-collection`,
`dms-services`,
`eng-arch`
)
lazy val `dms-prototype` = project
.in(file("."))
.aggregate(aggregatedProjects: _*)
// --------------- COLLECTION SERVICE --------------------------
lazy val `dms-services` = project
.in(file("dms-services"))
.settings(
libraryDependencies ++= Dependencies.MetadataServices.value
)
.dependsOn(
`dms-metadata-access-impl`,
`dms-metadata-collection`
)
lazy val `dms-metadata-collection` = project
.in(file("dms-metadata-collection"))
.settings(
libraryDependencies ++= Dependencies.MetadataCollection.value
)
lazy val `dms-metadata-access` = project
.in(file("dms-metadata-access"))
.aggregate(`dms-metadata-access-api`, `dms-metadata-access-impl`)
lazy val `dms-metadata-access-api` = project
.in(file("dms-metadata-access/dms-metadata-access-api"))
lazy val `dms-metadata-access-impl` = project
.in(file("dms-metadata-access/dms-metadata-access-impl"))
.settings(
libraryDependencies ++= Dependencies.MetadataAccessImpl.value
)
.dependsOn(`dms-metadata-access-api`)
// --------------- ENG ARCH --------------------------
lazy val `eng-arch` = project
.aggregate(`eng-arch-conversion-job`, `eng-arch-ingestor-job`)
lazy val `eng-arch-conversion-job` = project
.in(file("eng-arch/eng-arch-conversion-job"))
.settings(
scalaVersion := "2.12.12",
libraryDependencies ++= Seq(
"io.delta" %% "delta-core" % "1.0.0",
"org.apache.spark" %% "spark-sql" % "3.1.2",
// "com.typesafe.akka" %% "akka-stream-typed" % "2.6.10",
"io.bullet" %% "borer-derivation" % "1.7.2",
"org.apache.hadoop" % "hadoop-aws" % "3.3.1"
),
scalacOptions ++= Seq(
"-encoding",
"UTF-8",
"-feature",
"-unchecked",
"-deprecation",
"-Xlint:-unused,_",
"-Ywarn-dead-code",
"-Xfuture"
),
javaOptions ++= Seq(
"-Xmx8g"
),
run := Defaults.runTask(fullClasspath in Runtime, mainClass in run in Compile, runner in run).evaluated
)
lazy val `eng-arch-ingestor-job` = project
.in(file("eng-arch/eng-arch-ingestor-job"))
.settings(
scalaVersion := "2.13.3",
resolvers += "jitpack" at "https://jitpack.io",
libraryDependencies ++= Seq(
"com.github.tmtsoftware.csw" %% "csw-event-client" % "9252764",
"org.apache.hadoop" % "hadoop-client" % "3.3.1"
),
scalacOptions ++= Seq(
"-encoding",
"UTF-8",
"-feature",
"-unchecked",
"-deprecation",
"-Wconf:any:warning-verbose",
"-Wdead-code",
"-Xlint:_,-missing-interpolator,-byname-implicit",
"-Xsource:3",
"-Xcheckinit"
// "-Xasync" does not work with Scala.js js yet
)
)