forked from almoehi/reactive-docker
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.sbt
110 lines (86 loc) · 3.3 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
//FIXME: add integration test properly
addCompilerPlugin("org.scalamacros" %% "paradise" % "2.1.0" cross CrossVersion.full)
lazy val commonSettings = Seq(
name := "reactive-docker",
organization := "edu.cornell.cac",
version := "0.1-SNAPSHOT",
scalaVersion := "2.11.8"
)
lazy val logbackVer = "1.0.9"
lazy val root = (project in file(".")).
configs(IntegrationTest).
settings(commonSettings: _*).
settings(Defaults.itSettings: _*).
settings(
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"
),
libraryDependencies ++= Seq(
//"org.scalaxb" % "scalaxb_2.11" % "1.4.1",
// "co.fs2" %% "fs2-core" % "0.9.0-RC2",
"com.chuusai" %% "shapeless" % "2.3.2",
//"org.scalaz.stream" %% "scalaz-stream" % "0.3.1",
"com.netaporter" %% "scala-uri" % "0.4.2",
"com.typesafe.play" %% "play-json" % "2.5.5",
"com.typesafe.play" %% "play-iteratees" % "2.5.5",
// "com.typesafe.akka" %% "akka-actor" % "2.4-SNAPSHOT",
"net.databinder.dispatch" %% "dispatch-core" % "0.11.2",
"ch.qos.logback" % "logback-core" % logbackVer,
"ch.qos.logback" % "logback-classic" % logbackVer,
"org.apache.commons" % "commons-compress" % "1.8.1",
"org.specs2" %% "specs2" % "3.7" % "it,test",
"org.skyscreamer" % "jsonassert" % "1.3.0" % "it,test"
),
// other settings here
//Note: Wart.Nothing is good in principle but too many false positives IMO
//wartremoverWarnings += Wart.allBut(Wart.Nothing),
//,wartremoverErrors ++= Warts.unsafe
//,wartremoverErrors ++= Warts.allBut(Wart.Var, Wart.Nothing)
publishMavenStyle := true,
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:_"),
javacOptions ++= Seq("-target", "1.6", "-source","1.6"),
// 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")
),
testOptions in Test += Tests.Argument("-oDF")
)