forked from derrickburns/generalized-kmeans-clustering
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
60 lines (56 loc) · 2.19 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
import sbt.Keys._
import com.typesafe.sbt.SbtGit._
lazy val root = (project in file(".")).
settings(
name := "massivedatascience-clusterer",
organization := "com.massivedatascience",
organizationName := "Massive Data Science, LLC",
licenses += ("Apache-2.0", url("http://www.apache.org/licenses/LICENSE-2.0")),
scalaVersion := "2.10.4",
crossScalaVersions := Seq("2.10.4", "2.11.6"),
scalacOptions ++= Seq("-unchecked", "-feature"),
scalacOptions in (Compile, compile) ++= Seq("-Xlint", "-Xfatal-warnings", "-deprecation"),
javacOptions ++= Seq( "-source", "1.7", "-target", "1.7"),
publishMavenStyle := true,
publishArtifact in Test := false,
pomIncludeRepository := { _ => false },
libraryDependencies ++= Seq(
"joda-time" % "joda-time" % "2.2",
"org.joda" % "joda-convert" % "1.6",
"org.scalatest" %% "scalatest" % "2.2.1" % "test"
),
git.remoteRepo := "[email protected]:derrickburns/generalized-kmeans-clustering.git",
sparkPackageName := "derrickburns/generalized-kmeans-clustering",
sparkVersion := "1.3.0",
sparkComponents += "mllib",
testOptions in Test += Tests.Argument("-Dlog4j.configuration=log4j.properties"),
ScoverageSbtPlugin.ScoverageKeys.coverageHighlighting := highlight(scalaVersion.value),
ScoverageSbtPlugin.ScoverageKeys.coverageExcludedPackages := ".*.clusterer.CachingKMeans;" +
".*.clusterer.SingleKMeans;" +
".*.clusterer.TrackingKMeans;" +
".*.clusterer.DetailedTrackingStats;" +
".*.clusterer.AssignmentSelector;" +
".*.clusterer.MultiKMeans",
wartremoverErrors in (Compile, compile) ++= Seq(
Wart.Any,
Wart.Any2StringAdd,
Wart.EitherProjectionPartial,
Wart.OptionPartial,
Wart.Product,
Wart.Serializable,
Wart.ListOps,
Wart.Nothing
)
).
settings(scalariformSettings: _*).
settings(site.settings: _*).
settings(ghpages.settings: _*).
settings(bintraySettings: _*).
settings(versionWithGit: _*).
settings(site.includeScaladoc(): _*)
def highlight(scalaVersion: String) = {
CrossVersion.partialVersion(scalaVersion) match {
case Some((2, scalaMajor)) if scalaMajor < 11 => false
case _ => true
}
}