diff options
author | Jakob Odersky <jodersky@gmail.com> | 2015-03-20 15:57:16 +0100 |
---|---|---|
committer | Jakob Odersky <jodersky@gmail.com> | 2015-03-20 15:57:16 +0100 |
commit | f7a74ef1050cb390bf3929d6e7bc07631d015f06 (patch) | |
tree | 894c9062a9b6940daf3b6d318f19d6d245a9592c /project | |
parent | d6a219585abd371645bf03d0355ebf0921d418a1 (diff) | |
download | sbt-mavlink-0.1.tar.gz sbt-mavlink-0.1.tar.bz2 sbt-mavlink-0.1.zip |
add publishingv0.1
Diffstat (limited to 'project')
-rw-r--r-- | project/Build.scala | 28 |
1 files changed, 27 insertions, 1 deletions
diff --git a/project/Build.scala b/project/Build.scala index 2c03354..19c9543 100644 --- a/project/Build.scala +++ b/project/Build.scala @@ -11,7 +11,7 @@ object ApplicationBuild extends Build { scalacOptions ++= Seq("-feature", "-deprecation"), organization := "com.github.jodersky", version := "0.1-SNAPSHOT" - ) + ) ++ publishSettings lazy val root = ( Project("root", file(".")) @@ -50,6 +50,32 @@ object ApplicationBuild extends Build { ) dependsOn(library) ) + + lazy val publishSettings: Seq[Setting[_]] = Seq( + licenses := Seq(("LGPL", url("http://opensource.org/licenses/LGPL-3.0"))), + homepage := Some(url("http://github.com/jodersky/sbt-mavlink")), + publishMavenStyle := true, + publishTo := { + val nexus = "https://oss.sonatype.org/" + if (isSnapshot.value) + Some("snapshots" at nexus + "content/repositories/snapshots") + else + Some("releases" at nexus + "service/local/staging/deploy/maven2") + }, + pomIncludeRepository := { _ => false }, + pomExtra := { + <scm> + <url>git@github.com:jodersky/sbt-mavlink.git</url> + <connection>scm:git:git@github.com:jodersky/sbt-mavlink.git</connection> + </scm> + <developers> + <developer> + <id>jodersky</id> + <name>Jakob Odersky</name> + </developer> + </developers> + } + ) } |