forked from oedura/scavro
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
49 lines (43 loc) · 1.34 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
sbtPlugin := true
// Metadata
organization := "com.oysterbooks"
name := "scavro"
version := "0.9.0"
scalaVersion := "2.10.4"
description := "An SBT plugin for automatically calling Avro code generation " +
"and a thin scala wrapper for reading and writing Avro files"
// Distribution
licenses := Seq("Apache" -> url("http://www.apache.org/licenses/LICENSE-2.0"))
homepage := Some(url("https://github.com/oysterbooks/scavro"))
// Dependencies
resolvers += Resolver.sonatypeRepo("public")
libraryDependencies ++= Seq(
"org.apache.avro" % "avro" % "1.7.7",
"org.apache.avro" % "avro-tools" % "1.7.7",
"org.scalatest" %% "scalatest" % "2.2.4" % "test"
)
// Publication
publishMavenStyle := true
publishArtifact in Test := false
pomIncludeRepository := { _ => false }
publishTo := {
val nexus = "https://oss.sonatype.org/"
println("isSnapshot: " + isSnapshot.value)
if (isSnapshot.value)
Some("snapshots" at nexus + "content/repositories/snapshots")
else
Some("releases" at nexus + "service/local/staging/deploy/maven2")
}
pomExtra := {
<scm>
<url>[email protected]:oysterbooks/scavro.git</url>
<connection>scm:[email protected]:oysterbooks/scavro.git</connection>
</scm>
<developers>
<developer>
<id>BrianLondon</id>
<name>Brian London</name>
<url>https://github.com/BrianLondon</url>
</developer>
</developers>
}