-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathbuild.sbt
46 lines (35 loc) · 1.13 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
sbtPlugin := true
name := "sbt-maven-plugin"
organization := "com.github.shivawu"
version := "0.1.3-SNAPSHOT"
publishMavenStyle := true
scalaVersion := "2.10.3"
scalacOptions <<= scalaVersion map { v: String =>
val default = Seq("-unchecked", "-deprecation")
if (v startsWith "2.10")
default :+ "-feature" :+ "-language:implicitConversions"
else
default
}
crossScalaVersions := Seq("2.9.1", "2.9.2", "2.10.0", "2.10.3")
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")
}
homepage := Some(url("/~https://github.com/shivawu/sbt-maven-plugin"))
licenses := Seq("Apache 2.0" -> url("http://www.apache.org/licenses/LICENSE-2.0.html"))
pomExtra := (
<scm>
<url>git@github.com:shivawu/sbt-maven-plugin.git</url>
<connection>scm:git:git@github.com:shivawu/sbt-maven-plugin.git</connection>
</scm>
<developers>
<developer>
<id>shivawu</id>
<name>Shiva Wu</name>
</developer>
</developers>
)