-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
45 lines (34 loc) · 1.46 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
name := "LuciusAPI"
import aether.AetherKeys._
ThisBuild / version := "5.1.5"
scalaVersion := "2.11.12"
resolvers += Resolver.githubPackages("data-intuitive")
resolvers += "Artifactory" at "https://sparkjobserver.jfrog.io/artifactory/jobserver/"
libraryDependencies ++= Seq(
"com.data-intuitive" %% "luciuscore" % "4.1.2",
"spark.jobserver" %% "job-server-api" % "0.11.1" % "provided",
"spark.jobserver" %% "job-server-extras" % "0.11.1" % "provided",
"org.scalactic" %% "scalactic" % "3.0.7" % "test" ,
"org.scalatest" %% "scalatest" % "3.0.7" % "test" ,
"org.apache.spark" %% "spark-core" % "2.4.7" % "provided",
"org.apache.spark" %% "spark-sql" % "2.4.7" % "provided"
)
assembly / test := {}
organization := "com.data-intuitive"
licenses += ("Apache-2.0", url("https://www.apache.org/licenses/LICENSE-2.0.html"))
// publish to github packages
publishTo := Some("GitHub data-intuitive Apache Maven Packages" at "https://maven.pkg.github.com/data-intuitive/luciusapi")
publishMavenStyle := true
credentials += Credentials(
"GitHub Package Registry",
"maven.pkg.github.com",
"tverbeiren",
System.getenv("GITHUB_TOKEN")
)
// Publish assembly jar as well
Compile / assembly / artifact := {
val art = (Compile / assembly / artifact).value
art.withClassifier(Some("assembly"))
}
addArtifact(Compile / assembly / artifact, assembly)
aetherPackageMain := assembly.value