forked from bretthoerner/dropwizard-scala
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.sbt
73 lines (60 loc) · 2.23 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
// Basic project information
name := "dropwizard-scala"
version := "0.7.1"
organization := "com.massrelevance"
scalaVersion := "2.11.4"
crossScalaVersions := Seq("2.10.0", "2.11.0")
scalacOptions <<= scalaVersion map { sv: String =>
sv match {
case s: String if s.startsWith("2.9") => {
Seq("-encoding", "UTF-8", "-deprecation", "-unchecked", "-target:jvm-1.5")
}
case _ => {
Seq("-encoding", "UTF-8", "-deprecation", "-unchecked", "-target:jvm-1.6", "-feature", "-Ywarn-adapted-args")
}
}
}
resolvers += "Local Maven Repository" at "file://" + Path.userHome.absolutePath + "/.m2/repository"
libraryDependencies ++= Seq(
"io.dropwizard" % "dropwizard-core" % "0.7.1",
"nl.grons" %% "metrics-scala" % "3.3.0",
"com.fasterxml.jackson.module" %% "jackson-module-scala" % "2.4.3",
"org.scalatest" %% "scalatest" % "2.2.2" % "test",
"org.mockito" % "mockito-core" % "1.10.8" % "test",
"com.sun.jersey.jersey-test-framework" % "jersey-test-framework-core" % "1.18.2" % "test",
"com.sun.jersey.jersey-test-framework" % "jersey-test-framework-inmemory" % "1.18.2" % "test",
"com.sun.jersey" % "jersey-client" % "1.18.2" % "test"
)
credentials += Credentials(Path.userHome / ".ivy2" / ".credentials")
publishTo <<= version { (v: String) =>
val maven = "https://oss.sonatype.org/"
if (v.trim.endsWith("SNAPSHOT"))
Some("snapshots" at maven + "content/repositories/snapshots/")
else
Some("releases" at maven + "service/local/staging/deploy/maven2/")
}
publishMavenStyle := true
publishArtifact in Test := false
pomIncludeRepository := { x => false }
pomExtra := (
<url>https://github.com/bretthoerner/dropwizard-scala</url>
<licenses>
<license>
<name>Apache License 2.0</name>
<url>http://www.apache.org/licenses/LICENSE-2.0.html</url>
<distribution>repo</distribution>
</license>
</licenses>
<scm>
<url>[email protected]:bretthoerner/dropwizard-scala.git</url>
<connection>scm:git:[email protected]:bretthoerner/dropwizard-scala.git</connection>
</scm>
<developers>
<developer>
<id>bretthoerner</id>
<name>Brett Hoerner</name>
<url>http://bretthoerner.com</url>
<timezone>-6</timezone>
</developer>
</developers>
)