This repository has been archived by the owner on Nov 28, 2017. It is now read-only.
forked from scalastuff/scalabeans
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.sbt
82 lines (66 loc) · 2.43 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
import scala.xml.Group
organization := "org.json4s"
name := "scalabeans"
version := "0.3.0-SNAPSHOT"
scalaVersion := "2.9.2"
javacOptions ++= Seq("-Xlint:unchecked", "-Xlint:deprecation")
scalacOptions ++= Seq("-optimize", "-unchecked", "-deprecation", "-Xcheckinit", "-encoding", "utf8")
homepage := Some(url("https://github.com/scalastuff/scalabeans"))
startYear := Some(2010)
licenses := Seq(("ASL", url("http://www.apache.org/licenses/LICENSE-2.0.txt")))
pomExtra <<= (pomExtra, name, description) {(pom, name, desc) => pom ++ Group(
<scm>
<connection>scm:git:[email protected]:scalastuff/scalabeans.git</connection>
<url>https://github.com/scalastuff/scalabeans</url>
</scm>
<developers>
<developer>
<id>rditerwich</id>
<name>Ruud Diterwich</name>
</developer>
<developer>
<id>advorkovyy</id>
<name>Alexander Dvorkovyy</name>
</developer>
</developers>
<contributors>
<contributor>
<name>Sergey Nazarov</name>
</contributor>
</contributors>
)}
packageOptions <+= (name, version, organization) map {
(title, version, vendor) =>
Package.ManifestAttributes(
"Created-By" -> "Simple Build Tool",
"Built-By" -> System.getProperty("user.name"),
"Build-Jdk" -> System.getProperty("java.version"),
"Specification-Title" -> title,
"Specification-Version" -> version,
"Specification-Vendor" -> vendor,
"Implementation-Title" -> title,
"Implementation-Version" -> version,
"Implementation-Vendor-Id" -> vendor,
"Implementation-Vendor" -> vendor
)
}
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")
}
publishArtifact in Test := false
pomIncludeRepository := { x => false }
libraryDependencies ++= Seq(
"com.thoughtworks.paranamer" % "paranamer" % "2.5.1",
"org.codehaus.woodstox" % "woodstox-core-asl" % "4.1.4" % "optional",
"junit" % "junit" % "4.8.2" % "test",
"com.google.guava" % "guava" % "13.0.1",
"com.dyuproject.protostuff" % "protostuff-core" % "1.0.7" % "optional",
"com.dyuproject.protostuff" % "protostuff-api" % "1.0.7" % "optional",
"com.dyuproject.protostuff" % "protostuff-json" % "1.0.7" % "optional",
"com.dyuproject.protostuff" % "protostuff-xml" % "1.0.7" % "optional"
)