Skip to content

Commit bd856a9

Browse files
committed
Initial commit of build and project file
1 parent 5d99716 commit bd856a9

File tree

3 files changed

+129
-0
lines changed

3 files changed

+129
-0
lines changed

build.sbt

Lines changed: 117 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,117 @@
1+
organization := "com.sparklingpandas"
2+
3+
name := "sparklingml"
4+
5+
publishMavenStyle := true
6+
7+
version := "0.1.0"
8+
9+
sparkVersion := "2.1.1"
10+
11+
scalaVersion := {
12+
if (sparkVersion.value >= "2.0.0") {
13+
"2.11.8"
14+
} else {
15+
"2.10.6"
16+
}
17+
}
18+
19+
// See https://github.com/scala/scala/pull/3799
20+
coverageHighlighting := {
21+
if (sparkVersion.value >= "2.0.0") {
22+
true
23+
} else {
24+
false
25+
}
26+
}
27+
28+
29+
crossScalaVersions := {
30+
if (sparkVersion.value > "2.0.0") {
31+
Seq("2.11.11")
32+
} else {
33+
Seq("2.10.6", "2.11.11")
34+
}
35+
}
36+
37+
javacOptions ++= Seq("-source", "1.8", "-target", "1.8")
38+
39+
//tag::spName[]
40+
spName := "sparklingpandas/sparklingml"
41+
//end::spName[]
42+
43+
sparkComponents := Seq("core", "sql", "catalyst", "mllib")
44+
45+
parallelExecution in Test := false
46+
fork := true
47+
48+
49+
coverageHighlighting := {
50+
if (scalaBinaryVersion.value == "2.10") false
51+
else true
52+
}
53+
54+
55+
56+
javaOptions ++= Seq("-Xms512M", "-Xmx2048M", "-XX:MaxPermSize=2048M", "-XX:+CMSClassUnloadingEnabled")
57+
58+
// additional libraries
59+
libraryDependencies ++= Seq(
60+
"org.scalatest" %% "scalatest" % "3.0.1",
61+
"org.scalacheck" %% "scalacheck" % "1.13.4",
62+
"com.holdenkarau" %% "spark-testing-base_2.1.1" % "0.6.0")
63+
64+
65+
scalacOptions ++= Seq("-deprecation", "-unchecked")
66+
67+
pomIncludeRepository := { x => false }
68+
69+
resolvers ++= Seq(
70+
"JBoss Repository" at "http://repository.jboss.org/nexus/content/repositories/releases/",
71+
"Spray Repository" at "http://repo.spray.cc/",
72+
"Cloudera Repository" at "https://repository.cloudera.com/artifactory/cloudera-repos/",
73+
"Akka Repository" at "http://repo.akka.io/releases/",
74+
"Twitter4J Repository" at "http://twitter4j.org/maven2/",
75+
"Apache HBase" at "https://repository.apache.org/content/repositories/releases",
76+
"Twitter Maven Repo" at "http://maven.twttr.com/",
77+
"scala-tools" at "https://oss.sonatype.org/content/groups/scala-tools",
78+
"sonatype-releases" at "https://oss.sonatype.org/content/repositories/releases/",
79+
"Typesafe repository" at "http://repo.typesafe.com/typesafe/releases/",
80+
"Second Typesafe repo" at "http://repo.typesafe.com/typesafe/maven-releases/",
81+
"Mesosphere Public Repository" at "http://downloads.mesosphere.io/maven",
82+
Resolver.sonatypeRepo("public")
83+
)
84+
85+
// publish settings
86+
publishTo := {
87+
val nexus = "https://oss.sonatype.org/"
88+
if (isSnapshot.value)
89+
Some("snapshots" at nexus + "content/repositories/snapshots")
90+
else
91+
Some("releases" at nexus + "service/local/staging/deploy/maven2")
92+
}
93+
94+
licenses := Seq("Apache License 2.0" -> url("http://www.apache.org/licenses/LICENSE-2.0.html"))
95+
96+
homepage := Some(url("https://github.com/sparklingpandas/sparklingml"))
97+
98+
pomExtra := (
99+
<scm>
100+
<url>git@github.com:sparklingpandas/sparklingml.git</url>
101+
<connection>scm:git@github.com:sparklingpandas/sparklingml.git</connection>
102+
</scm>
103+
<developers>
104+
<developer>
105+
<id>holdenk</id>
106+
<name>Holden Karau</name>
107+
<url>http://www.holdenkarau.com</url>
108+
<email>holden@pigscanfly.ca</email>
109+
</developer>
110+
</developers>
111+
)
112+
113+
credentials ++= Seq(Credentials(Path.userHome / ".ivy2" / ".sbtcredentials"), Credentials(Path.userHome / ".ivy2" / ".sparkcredentials"))
114+
115+
spIncludeMaven := true
116+
117+
useGpg := true

project/build.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
sbt.version=0.13.15

project/plugins.sbt

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
addSbtPlugin("org.scalastyle" %% "scalastyle-sbt-plugin" % "0.8.0")
2+
3+
resolvers += "sonatype-releases" at "https://oss.sonatype.org/content/repositories/releases/"
4+
5+
resolvers += "Spark Package Main Repo" at "https://dl.bintray.com/spark-packages/maven"
6+
7+
addSbtPlugin("org.spark-packages" % "sbt-spark-package" % "0.2.5")
8+
9+
addSbtPlugin("com.jsuereth" % "sbt-pgp" % "1.0.0")
10+
11+
addSbtPlugin("org.scoverage" % "sbt-scoverage" % "1.5.0")

0 commit comments

Comments
 (0)