-
Notifications
You must be signed in to change notification settings - Fork 5
/
build.sbt
57 lines (56 loc) · 1.72 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
import sbt.Keys._
lazy val root = (project in file(".")).
settings(
organization := "com.tsukaby",
name := "naive-bayes-classifier-scala",
version := "0.2.0",
scalaVersion := "2.12.4",
crossScalaVersions := Seq("2.11.12", "2.12.4"),
libraryDependencies ++= Seq(
"org.specs2" %% "specs2-core" % "4.0.1" % "test"
),
// Maven deploy settings
publishMavenStyle := true,
publishArtifact in Test := 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")
},
pomIncludeRepository := { _ => false},
pomExtra := <url>https://github.com/tsukaby/naive-bayes-classifier-scala</url>
<licenses>
<license>
<name>MIT License</name>
<url>http://www.opensource.org/licenses/mit-license.php</url>
<distribution>repo</distribution>
</license>
</licenses>
<scm>
<url>git@github.com:tsukaby/naive-bayes-classifier-scala.git</url>
<connection>scm:git:git@github.com:tsukaby/naive-bayes-classifier-scala.git</connection>
</scm>
<developers>
<developer>
<id>tsukaby</id>
<name>Shuya Tsukamoto</name>
<url>https://github.com/tsukaby</url>
</developer>
</developers>,
// Add warnings
scalacOptions ++= Seq(
"-deprecation",
"-feature",
"-unchecked",
"-Xlint",
"-Ywarn-dead-code",
"-Ywarn-numeric-widen",
"-Ywarn-unused",
"-Ywarn-unused-import",
"-Ywarn-value-discard",
"-Xfatal-warnings",
"-Yrangepos"
)
)