-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.sbt
56 lines (44 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
56
name := "form-binder"
version := "0.12.2"
scalaVersion := "2.11.8"
crossScalaVersions := Seq("2.11.8", "2.10.6")
organizationName := "form-binder"
organization := "com.github.tminglei"
libraryDependencies ++= Seq(
"io.spray" %% "spray-json" % "1.3.2",
"org.slf4j" % "slf4j-api" % "1.7.12",
"org.slf4j" % "slf4j-simple" % "1.7.12" % "provided",
"org.scalatest" %% "scalatest" % "2.2.4" % "test"
)
///////////////// for publish/release ///////////////////////////////
publishTo <<= version { (v: String) =>
val nexus = "https://oss.sonatype.org/"
if (v.trim.toUpperCase.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 := { _ => false }
makePomConfiguration ~= { _.copy(configurations = Some(Seq(Compile, Runtime, Optional))) }
pomExtra :=
<url>https://github.com/tminglei/form-binder</url>
<licenses>
<license>
<name>BSD-style</name>
<url>http://www.opensource.org/licenses/bsd-license.php</url>
<distribution>repo</distribution>
</license>
</licenses>
<scm>
<url>[email protected]:tminglei/form-binder.git</url>
<connection>scm:git:[email protected]:tminglei/form-binder.git</connection>
</scm>
<developers>
<developer>
<id>tminglei</id>
<name>Minglei Tu</name>
<timezone>+8</timezone>
</developer>
</developers>