diff options
author | Jakob Odersky <jodersky@gmail.com> | 2015-05-06 10:51:29 +0200 |
---|---|---|
committer | Jakob Odersky <jodersky@gmail.com> | 2015-05-06 12:13:11 +0200 |
commit | 5e611b35a891ab35d15a5eb8fcb8fcee6de1bb08 (patch) | |
tree | af3d48f72ac401fae995b8c9e31f4c96c038c7b2 /project/Publish.scala | |
parent | 8a5734ed1bf73838a274409a929d1728bbd8cd40 (diff) | |
download | akka-serial-5e611b35a891ab35d15a5eb8fcb8fcee6de1bb08.tar.gz akka-serial-5e611b35a891ab35d15a5eb8fcb8fcee6de1bb08.tar.bz2 akka-serial-5e611b35a891ab35d15a5eb8fcb8fcee6de1bb08.zip |
refactor build
Diffstat (limited to 'project/Publish.scala')
-rw-r--r-- | project/Publish.scala | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/project/Publish.scala b/project/Publish.scala new file mode 100644 index 0000000..fa22a75 --- /dev/null +++ b/project/Publish.scala @@ -0,0 +1,32 @@ +import sbt._ +import Keys._ + +object Publish { + + lazy val publishSettings: Seq[Setting[_]] = Seq( + licenses := Seq(("BSD-3-Clause", url("http://opensource.org/licenses/BSD-3-Clause"))), + homepage := Some(url("http://github.com/jodersky/flow")), + 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/flow.git</url> + <connection>scm:git:git@github.com:jodersky/flow.git</connection> + </scm> + <developers> + <developer> + <id>jodersky</id> + <name>Jakob Odersky</name> + </developer> + </developers> + } + ) + +} |