-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
114 lines (91 loc) · 3.39 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
105
106
107
108
109
110
111
112
113
import NativePackagerHelper._
import sbt.url
name := "orac-sdk"
organization := "io.elegans"
scalaVersion := "2.11.11"
crossScalaVersions := Seq("2.11.11")
resolvers ++= Seq("Typesafe Repository" at "http://repo.typesafe.com/typesafe/releases/",
Resolver.bintrayRepo("hseeberger", "maven"))
resolvers +=
"Sonatype OSS Snapshots" at "https://oss.sonatype.org/content/repositories/snapshots"
resolvers +=
"Sonatype OSS Releases" at "https://oss.sonatype.org/service/local/staging/deploy/maven2"
libraryDependencies ++= {
val AkkaVersion = "2.5.8"
val AkkaHttpVersion = "10.1.0"
val ESClientVersion = "6.2.3"
val SparkVersion = "2.2.1"
val OracEntitiesVersion = "1.0.2"
val ScoptVersion = "3.7.0"
val SparkXmlVersion = "0.4.1"
val BreezeLinalg = "0.13.2"
val StanfordNLP = "3.9.1"
Seq(
"com.github.scopt" %% "scopt" % ScoptVersion,
"org.scalanlp" %% "breeze" % BreezeLinalg,
"org.scalanlp" %% "breeze-natives" % BreezeLinalg,
"edu.stanford.nlp" % "stanford-corenlp" % StanfordNLP,
"edu.stanford.nlp" % "stanford-corenlp" % StanfordNLP classifier "models",
"com.typesafe.akka" %% "akka-actor" % AkkaVersion,
"com.typesafe.akka" %% "akka-contrib" % AkkaVersion,
"com.typesafe.akka" %% "akka-http" % AkkaHttpVersion,
"com.typesafe.akka" %% "akka-http-core" % AkkaHttpVersion,
"com.typesafe.akka" %% "akka-http-spray-json" % AkkaHttpVersion,
"com.typesafe.akka" %% "akka-http-testkit" % AkkaHttpVersion,
"com.typesafe.akka" %% "akka-slf4j" % AkkaVersion,
"com.typesafe.akka" %% "akka-stream" % AkkaVersion,
"com.typesafe.akka" %% "akka-testkit" % AkkaVersion,
"com.typesafe.akka" %% "akka-typed" % AkkaVersion,
"io.elegans" %% "orac-entities" % OracEntitiesVersion,
"org.apache.spark" %% "spark-core" % SparkVersion,
"org.apache.spark" %% "spark-mllib" % SparkVersion,
"com.databricks" %% "spark-xml" % SparkXmlVersion
)
}
scalacOptions += "-deprecation"
scalacOptions += "-feature"
enablePlugins(GitVersioning)
enablePlugins(GitBranchPrompt)
enablePlugins(JavaServerAppPackaging)
enablePlugins(UniversalPlugin)
git.useGitDescribe := true
assemblyMergeStrategy in assembly := {
case PathList("META-INF", xs @ _*) => MergeStrategy.discard
case PathList("reference.conf") => MergeStrategy.concat
case x => MergeStrategy.first
}
enablePlugins(GitBranchPrompt)
enablePlugins(GitVersioning)
enablePlugins(UniversalPlugin)
git.useGitDescribe := true
publishTo := {
val nexus = "https://oss.sonatype.org/"
if (isSnapshot.value)
Some("snapshots" at nexus + "content/repositories/snapshots")
else
Some("releases" at nexus + "service/local/staging/deploy/maven2")
}
publishMavenStyle := true
publishArtifact in Test := false
pomIncludeRepository := { _ => false }
homepage := Some(url("http://www.elegans.io"))
scmInfo := Some(
ScmInfo(
url("https://github.com/elegans-io/orac-sdk"),
"scm:[email protected]:elegans-io/orac-sdk.git"
)
)
developers := List(
Developer(
id = "angleto",
name = "Angelo Leto",
email = "[email protected]",
url = url("http://www.elegans.io")
)
)
releaseProcess := Seq[ReleaseStep](
releaseStepCommand("sonatypeOpen \"io.elegans\" \"orac-sdk\""),
releaseStepCommand("publishSigned"),
releaseStepCommand("sonatypeRelease")
)
licenses := Seq(("GPLv2", url("https://www.gnu.org/licenses/old-licenses/gpl-2.0.md")))