forked from scify/JedAI-Spark
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
59 lines (37 loc) · 2.3 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
organization := "com.stardog"
name := "spark-er"
version := "1.0.0"
scalaVersion := "2.12.4"
val sparkVersion = "3.3.1"
val jacksonVersion = "2.14.0"
unmanagedBase := baseDirectory.value / "custom_lib"
libraryDependencies += "org.apache.spark" % "spark-core_2.12" % sparkVersion
libraryDependencies += "org.apache.spark" % "spark-sql_2.12" % sparkVersion
libraryDependencies += "org.apache.spark" % "spark-graphx_2.12" % sparkVersion
libraryDependencies += "org.apache.spark" % "spark-mllib_2.12" % sparkVersion
libraryDependencies += "org.apache.spark" % "spark-hive_2.12" % sparkVersion
// https://mvnrepository.com/artifact/org.apache.commons/commons-math3
libraryDependencies += "org.apache.commons" % "commons-math3" % "3.6.1"
// https://mvnrepository.com/artifact/commons-codec/commons-codec
libraryDependencies += "commons-codec" % "commons-codec" % "1.11"
// https://mvnrepository.com/artifact/org.jgrapht/jgrapht-core
libraryDependencies += "org.jgrapht" % "jgrapht-core" % "0.9.0"//% "1.0.1"
// https://mvnrepository.com/artifact/org.json/json
libraryDependencies += "org.json" % "json" % "20170516"
libraryDependencies += "com.holdenkarau" %% "spark-testing-base" % "3.3.1_1.3.0" % Test
// https://mvnrepository.com/artifact/org.apache.livy/livy-core
// libraryDependencies += "org.apache.livy" %% "livy-core" % "0.7.1-incubating" exclude("com.esotericsoftware.kryo", "kryo")
Test / parallelExecution := false
//mainClass in Compile := Some("Experiments.Main")
dependencyOverrides += "com.fasterxml.jackson.core" % "jackson-core" % jacksonVersion % "test"
dependencyOverrides += "com.fasterxml.jackson.core" % "jackson-databind" % jacksonVersion % "test"
libraryDependencies += "com.fasterxml.jackson.module" %% "jackson-module-scala" % jacksonVersion % "test"
assembly / assemblyMergeStrategy := {
case PathList("META-INF", xs@_*) => MergeStrategy.discard
case x => MergeStrategy.first
}
val artifactoryUrl = "https://stardog.jfrog.io/stardog/stardog-testing/nightly-develop-jedai-snapshot/MAVEN"
val artifactoryUser = sys.env.getOrElse("artifactoryUsername", "undefined")
val artifactoryPassword = sys.env.getOrElse("artifactoryPassword", "undefined")
credentials += Credentials("Artifactory Realm", "stardog.jfrog.io", artifactoryUser, artifactoryPassword)
publishTo := Some("Artifactory Realm" at artifactoryUrl)