-
Notifications
You must be signed in to change notification settings - Fork 8
/
build.sbt
97 lines (75 loc) · 2.71 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
import sbt.Developer
name := "pravda-ml"
// Have to fix Guava in order to avoid conflict on Stopwatch in FileInputFormat (of haddop 2.6.5)
libraryDependencies += "com.google.guava" % "guava" % "16.0.1" withSources()
libraryDependencies ++= {
val sparkVer = "2.4.4"
Seq(
"org.apache.spark" %% "spark-core" % sparkVer withSources() exclude("com.google.guava", "guava"),
"org.apache.spark" %% "spark-mllib" % sparkVer withSources() exclude("com.google.guava", "guava"),
"org.apache.spark" %% "spark-sql" % sparkVer withSources() exclude("com.google.guava", "guava"),
"org.apache.spark" %% "spark-streaming" % sparkVer withSources() exclude("com.google.guava", "guava"),
"com.esotericsoftware" % "kryo" % "4.0.1"
)
}
libraryDependencies ++= Seq(
"org.scalatest" %% "scalatest" % "3.0.4" % Test,
"org.mockito" % "mockito-core" % "2.13.0" % Test
)
libraryDependencies ++= {
val luceneVersion = "5.4.1"
Seq(
"org.apache.lucene" % "lucene-core" % luceneVersion,
"org.apache.lucene" % "lucene-analyzers-common" % luceneVersion,
"com.optimaize.languagedetector" % "language-detector" % "0.6" exclude("com.google.guava", "guava"),
"com.tdunning" % "t-digest" % "3.2"
)
}
libraryDependencies ++= Seq(
"ml.dmlc" %% "xgboost4j" % "1.1.1" withSources(),
"ml.dmlc" %% "xgboost4j-spark" % "1.1.1" withSources()
)
libraryDependencies += "org.mlflow" % "mlflow-client" % "1.2.0"
organization := "ru.odnoklassniki"
version := "0.6.3"
scalaVersion := "2.11.8"
crossScalaVersions := Seq("2.11.11")
licenses := Seq("Apache 2.0" -> url("https://www.apache.org/licenses/LICENSE-2.0"))
homepage := Some(url("https://github.com/odnoklassniki/pravda-ml"))
scmInfo := Some(
ScmInfo(
url("https://github.com/odnoklassniki/pravda-ml"),
"scm:[email protected]:odnoklassniki/pravda-ml.git"
)
)
developers := List(
Developer(
id = "DmitryBugaychenko",
name = "Dmitry Bugaychenko",
email = "[email protected]",
url = url("https://www.linkedin.com/comm/in/dmitrybugaychenko")
),
Developer(
id = "EugenyMalyutin",
name = "Eugeny Malyutin",
email = "[email protected]",
url = url("https://github.com/WarlockTheGrait")
),
Developer(
id = "EugenyZhurin",
name = "Eugeny Zhurin",
email = "[email protected]",
url = url("https://github.com/Nordsvich")
)
)
publishMavenStyle := true
pomIncludeRepository := { _ => false }
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")
}
credentials += Credentials(Path.userHome / ".sonatype" / "credentials.ini")
useGpg := true