-
Notifications
You must be signed in to change notification settings - Fork 5
/
build.sbt
53 lines (39 loc) · 1.49 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
import SonatypeKeys._
import PgpKeys.publishSigned
organization := "com.github.migralito"
name := "json4s-path"
scalaVersion := "2.11.2"
crossScalaVersions := Seq("2.11.2")
publishTo := {
if (isSnapshot.value)
Some("Sonatype Snapshots Nexus" at "https://oss.sonatype.org/content/repositories/snapshots")
else
Some("Sonatype Snapshots Nexus" at "https://oss.sonatype.org/service/local/staging/deploy/maven2")
}
libraryDependencies ++= Seq(
"org.json4s" %% "json4s-jackson" % "3.2.10",
"org.specs2" %% "specs2" % "2.4.2" % "test"
)
licenses := Seq("Apache 2" -> url("http://www.apache.org/licenses/LICENSE-2.0")) // required for release promotion
homepage := Some(url("https://github.com/migralito/json4s-path")) // required for release promotion
pomExtra := ( // required for release promotion
<scm>
<url>https://github.com/migralito/json4s-path.git</url>
<connection>scm:git:https://github.com/migralito/json4s-path.git</connection>
</scm>
<developers>
<developer>
<id>migralito</id>
<name>Alejandro De Lio</name>
<url>https://github.com/migralito</url>
</developer>
</developers>)
releaseSettings
sonatypeSettings
profileName := "com.github.migralito" // required by plugin sbt-sonatype
publish := publishSigned.value
// TODO search how to do this. It didn't work before. Was isSnapshot == true?
//publish := {
// publishSigned.value
// if (! isSnapshot.value) sonatypeRelease.value
//}