forked from datamechanics/delight
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
38 lines (33 loc) · 917 Bytes
/
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
import sbt.Keys.libraryDependencies
lazy val commonSettings = Seq(
version := (
if (git.gitCurrentBranch.value == "main") {
"latest"
} else {
git.gitCurrentBranch.value
}) + "-SNAPSHOT",
)
lazy val root = project
.in(file("."))
.aggregate(
common,
agent
)
.settings(
publish / skip := true
)
lazy val common = (project in file("common"))
.settings(
crossScalaVersions := Seq("2.11.12", "2.12.12"),
libraryDependencies += "org.apache.spark" %% "spark-core" % "2.4.3" % "provided",
publish / skip := true
)
lazy val agent = (project in file("agent"))
.settings(
name := "delight",
organization := "co.datamechanics",
crossScalaVersions := Seq("2.11.12", "2.12.12"),
libraryDependencies += "org.apache.spark" %% "spark-core" % "2.4.3" % "provided",
publishTo := sonatypePublishToBundle.value,
)
.settings(commonSettings: _*)