-
Notifications
You must be signed in to change notification settings - Fork 22
/
build.sbt
93 lines (71 loc) · 2.7 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
organization := "org.almoehi"
name := "reactive-docker"
version := "0.1-SNAPSHOT"
scalaVersion := "2.11.2"
resolvers += Resolver.sonatypeRepo("releases")
addCompilerPlugin("org.scalamacros" % "paradise" % "2.0.1" cross CrossVersion.full)
publishMavenStyle := true
//crossScalaVersions := Seq("2.10.0", "2.11.0")
publishTo <<= version { (v: String) =>
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")
}
parallelExecution in Test := false
publishArtifact in Test := false
pomIncludeRepository := { _ => false }
pomExtra := (
<url>http://github.com/almoehi/reactive-docker</url>
<licenses>
<license>
<name>Apache 2</name>
<url>http://www.apache.org/licenses/LICENSE-2.0.html</url>
<distribution>repo</distribution>
</license>
</licenses>
<scm>
<url>[email protected]:almoehi/reactive-docker.git</url>
<connection>scm:git:[email protected]:almoehi/reactive-docker.git</connection>
</scm>
<developers>
<developer>
<id>almoehi</id>
<name>alm oehi</name>
<url>http://github.com/almoehi/</url>
</developer>
</developers>)
scalacOptions ++= Seq("-deprecation","-language:_")
// scalacOptions in (Compile, console) += "-Xlog-implicits"
javacOptions ++= Seq("-target", "1.6", "-source","1.6")
val logbackVer = "1.0.9"
libraryDependencies ++= Seq(
//"org.scalaz.stream" %% "scalaz-stream" % "0.3.1",
"com.netaporter" %% "scala-uri" % "0.4.2",
"com.typesafe.play" %% "play-json" % "2.3.8",
"com.typesafe.play" %% "play-iteratees" % "2.3.8",
// "com.typesafe.akka" %% "akka-actor" % "2.4-SNAPSHOT",
"net.databinder.dispatch" %% "dispatch-core" % "0.11.2",
"org.specs2" %% "specs2" % "2.4.2" % "test",
"ch.qos.logback" % "logback-core" % logbackVer,
"ch.qos.logback" % "logback-classic" % logbackVer,
"org.apache.commons" % "commons-compress" % "1.8.1"
)
// see https://github.com/typesafehub/scalalogging/issues/23
testOptions in Test += Tests.Setup(classLoader =>
classLoader
.loadClass("org.slf4j.LoggerFactory")
.getMethod("getLogger", classLoader.loadClass("java.lang.String"))
.invoke(null, "ROOT")
)
resolvers ++= Seq(
Resolver.mavenLocal,
Resolver.sonatypeRepo("snapshots"),
Resolver.sonatypeRepo("releases"),
Resolver.typesafeRepo("releases"),
Resolver.typesafeRepo("snapshots")
//"Scalaz Bintray Repo" at "http://dl.bintray.com/scalaz/releases",
//"spray repo" at "http://repo.spray.io"
)
testOptions in Test += Tests.Argument("-oDF")