-
Notifications
You must be signed in to change notification settings - Fork 116
/
build.sbt
112 lines (90 loc) · 3.67 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
organization := "com.slamdata.slamengine"
name := "slamengine"
version := "0.1-SNAPSHOT"
scalaVersion := "2.10.3"
// mainClass in (run) := Some("slamdata.engine.repl.Repl")
// mainClass in (packageBin) := Some("slamdata.engine.api.Server")
// mainClass in (oneJar) := Some("slamdata.engine.api.Server")
// fork in run := true
addCompilerPlugin("org.brianmckenna" %% "wartremover" % "0.10")
scalacOptions ++= Seq(
"-deprecation",
"-feature",
"-unchecked",
"-language:implicitConversions",
"-language:higherKinds",
"-language:existentials",
"-language:postfixOps",
"-P:wartremover:traverser:org.brianmckenna.wartremover.warts.Unsafe"
)
resolvers ++= Seq(
Resolver.sonatypeRepo("releases"),
Resolver.sonatypeRepo("snapshots"),
"JBoss repository" at "https://repository.jboss.org/nexus/content/repositories/",
"Scalaz Bintray Repo" at "http://dl.bintray.com/scalaz/releases"
)
ScoverageSbtPlugin.instrumentSettings
com.github.retronym.SbtOneJar.oneJarSettings
libraryDependencies ++= Seq(
"org.scalaz" %% "scalaz-core" % "7.1.0-M6",
"org.scalaz" %% "scalaz-concurrent" % "7.1.0-M6",
"org.scalaz" %% "scalaz-task" % "7.1.0-SNAPSHOT",
"org.scalaz.stream" %% "scalaz-stream" % "0.4.1a",
"org.threeten" % "threetenbp" % "0.8.1",
"org.mongodb" % "mongo-java-driver" % "2.12.2",
"net.databinder" %% "unfiltered-filter" % "0.8.0",
"net.databinder" %% "unfiltered-netty-server" % "0.8.0",
"net.databinder" %% "unfiltered-netty" % "0.8.0",
"io.argonaut" %% "argonaut" % "6.1-M2",
"org.jboss.aesh" % "aesh" % "0.48",
"org.scalaz" %% "scalaz-scalacheck-binding" % "7.1.0-M6" % "test",
"org.scalacheck" %% "scalacheck" % "1.10.1" % "test",
"org.specs2" %% "specs2" % "2.3.4-scalaz-7.1.0-M3" % "test"
)
// To run tests in Eclipse:
libraryDependencies ++= Seq(
"org.specs2" %% "specs2-junit" % "2.3.4-scalaz-7.1.0-M3" % "test"
)
seq(bintraySettings:_*)
publishMavenStyle := true
licenses += ("GNU Affero GPL V3", url("http://www.gnu.org/licenses/agpl-3.0.html"))
bintray.Keys.packageLabels in bintray.Keys.bintray :=
Seq("mongodb", "nosql analytics", "sql", "analytics", "scala")
publishTo <<= (version).apply { v =>
val nexus = "https://oss.sonatype.org/"
if (v.trim.endsWith("SNAPSHOT"))
Some("Snapshots" at nexus + "content/repositories/snapshots")
else
Some("Releases" at nexus + "service/local/staging/deploy/maven2")
}
credentials += {
Seq("build.publish.user", "build.publish.password").map(k => Option(System.getProperty(k))) match {
case Seq(Some(user), Some(pass)) =>
Credentials("Sonatype Nexus Repository Manager", "oss.sonatype.org", user, pass)
case _ =>
Credentials(Path.userHome / ".ivy2" / ".credentials")
}
}
pomIncludeRepository := Function.const(false)
pomExtra := (
<url>http://github.com/slamdata/slamengine</url>
<licenses>
<license>
<name>GNU Affero General Public License Version 3</name>
<distribution>repo</distribution>
<url>http://www.gnu.org/licenses/agpl-3.0.html</url>
</license>
</licenses>
<scm>
<url>https://github.com/slamdata/slamengine</url>
<connection>scm:git:git://github.com/slamdata/slamengine.git</connection>
<developerConnection>scm:git:git@github.com:slamdata/slamengine.git</developerConnection>
</scm>
<developers>
<developer>
<id>jdegoes</id>
<name>John A. De Goes</name>
<url>https://degoes.net</url>
</developer>
</developers>
)