-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathbuild.sbt
executable file
·55 lines (43 loc) · 1.47 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
name := "tumblr4s"
organization := "com.orrsella"
scalaVersion := "2.11.4"
libraryDependencies ++= Seq(
"net.databinder" %% "dispatch-http" % "0.8.10",
"net.databinder" %% "dispatch-oauth" % "0.8.10",
"net.databinder" %% "dispatch-mime" % "0.8.10",
"org.json4s" %% "json4s-native" % "3.2.11",
"org.scalatest" %% "scalatest" % "2.1.7" % "test")
// publishing related
releaseSettings
ReleaseKeys.crossBuild := true
ReleaseKeys.publishArtifactsAction := PgpKeys.publishSigned.value
crossScalaVersions := Seq("2.10.4", "2.11.4")
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")
}
publishMavenStyle := true
publishArtifact in Test := false
pomIncludeRepository := { x => false }
pomExtra := (
<url>https://github.com/orrsella/tumblr4s</url>
<licenses>
<license>
<name>Apache 2</name>
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
<distribution>repo</distribution>
</license>
</licenses>
<scm>
<url>[email protected]:orrsella/tumblr4s.git</url>
<connection>scm:git:[email protected]:orrsella/tumblr4s.git</connection>
</scm>
<developers>
<developer>
<id>orrsella</id>
<name>Orr Sella</name>
<url>http://orrsella.com</url>
</developer>
</developers>
)