-
Notifications
You must be signed in to change notification settings - Fork 18
/
build.sbt
62 lines (41 loc) · 1.78 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
organization := "io.lamma"
name := "lamma"
version := "2.2.3"
scalaVersion := "2.11.7"
crossScalaVersions := Seq("2.10.5", "2.11.7")
javaOptions := Seq("-Xmx1g")
javacOptions := Seq("-Xlint:unchecked", "-Xlint:deprecation", "-source", "1.5", "-target", "1.5")
scalacOptions := Seq("-feature", "-deprecation", "-language:postfixOps", "-language:implicitConversions")
libraryDependencies += "junit" % "junit" % "4.12" % "test"
libraryDependencies += "com.novocode" % "junit-interface" % "0.9" % "test" // we need to have this lib in order to run junit with sbt test
libraryDependencies += "com.google.guava" % "guava" % "18.0" % "test"
libraryDependencies += "org.scalatest" %% "scalatest" % "2.2.4" % "test"
// ========== demo + sample source directories =========
unmanagedSourceDirectories in Test += baseDirectory.value / "src/sample/java"
unmanagedSourceDirectories in Test += baseDirectory.value / "src/sample/scala"
// ============ publish / release related ================
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 }
licenses := Seq("DO WHAT YOU WANT TO PUBLIC LICENSE, Version 1" -> url("https://github.com/maxcellent/lamma/blob/master/LICENSE"))
homepage := Some(url("http://lamma.io"))
pomExtra := (
<scm>
<url>http://github.com/maxcellent/lamma.git</url>
<connection>scm:git://github.com/maxcellent/lamma.git</connection>
</scm>
<developers>
<developer>
<id>maxcellent</id>
<name>Max Zhu</name>
<url>http://lamma.io</url>
</developer>
</developers>
)