-
Notifications
You must be signed in to change notification settings - Fork 7
/
build.sbt
50 lines (44 loc) · 1.36 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
// Metadata
organization := "org.oedura"
name := "scavro"
version := "1.0.3"
scalaVersion := "2.10.4"
crossScalaVersions := Seq("2.10.6", "2.11.8", "2.12.4")
description := "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/oedura/scavro"))
// Compiler Settings
javacOptions ++= Seq("-source", "1.7", "-target", "1.7")
scalacOptions += "-target:jvm-1.7"
// Dependencies
resolvers += Resolver.sonatypeRepo("public")
libraryDependencies ++= Seq(
"org.apache.avro" % "avro" % "1.8.1",
"org.scalatest" %% "scalatest" % "3.0.5" % "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]:oedura/scavro.git</url>
<connection>scm:[email protected]:oedura/scavro.git</connection>
</scm>
<developers>
<developer>
<id>BrianLondon</id>
<name>Brian London</name>
<url>https://github.com/BrianLondon</url>
</developer>
</developers>
}