forked from indix/ml2npy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
57 lines (54 loc) · 1.79 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
val libVersion = sys.env.getOrElse("SNAP_PIPELINE_COUNTER", "0.1.0-SNAPSHOT")
lazy val commonSettings = Seq(
organization := "com.indix",
version := libVersion,
autoAPIMappings := true,
organizationName := "Indix",
organizationHomepage := Some(url("http://oss.indix.com")),
scalaVersion := "2.11.8",
scalacOptions ++= Seq("-encoding", "UTF-8", "-deprecation", "-unchecked"),
javacOptions ++= Seq("-Xlint:deprecation", "-source", "1.7")
)
lazy val publishSettings = Seq(
publishMavenStyle := 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")
},
publishArtifact in Test := false,
pomIncludeRepository := { _ => false },
pomExtra := <url>https://github.com/indix/ml2npy</url>
<licenses>
<license>
<name>Apache License</name>
<url>https://raw.githubusercontent.com/indix/ml2npy/master/LICENSE</url>
<distribution>repo</distribution>
</license>
</licenses>
<scm>
<url>[email protected]:indix/ml2npy.git</url>
<connection>scm:git:[email protected]:indix/ml2npy.git</connection>
</scm>
<developers>
<developer>
<id>indix</id>
<name>Indix</name>
<url>http://oss.indix.com</url>
</developer>
</developers>
)
lazy val ml2npy = (project in file(".")).
settings(commonSettings: _*).
settings(publishSettings: _*).
settings(
name := "ml2npy",
libraryDependencies ++= Seq(
"org.apache.spark" %% "spark-mllib" % "2.0.0-preview" % "provided",
"log4j" % "log4j" % "1.2.17" % "provided",
"org.scalactic" %% "scalactic" % "2.2.3",
"org.scalatest" %% "scalatest" % "2.2.3" % Test
)
)