From f7a74ef1050cb390bf3929d6e7bc07631d015f06 Mon Sep 17 00:00:00 2001 From: Jakob Odersky Date: Fri, 20 Mar 2015 15:57:16 +0100 Subject: add publishing --- project/Build.scala | 28 +++++++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) 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 := { + + git@github.com:jodersky/sbt-mavlink.git + scm:git:git@github.com:jodersky/sbt-mavlink.git + + + + jodersky + Jakob Odersky + + + } + ) } -- cgit v1.2.3