Permalink
Browse files

ready for packaging to sonatype

  • Loading branch information...
1 parent f37e3e7 commit 2799377e7babce3697482fae579276b12152e596 Anders Conbere committed Feb 21, 2013
Showing with 30 additions and 0 deletions.
  1. +30 −0 build.sbt
View
@@ -17,3 +17,33 @@ libraryDependencies += "junit" % "junit" % "4.10" % "test"
libraryDependencies += "com.typesafe.akka" %% "akka-actor" % "2.1.0"
testOptions in Test += Tests.Argument("-oDF")
+
+publishMavenStyle := true
+
+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")
+ }
+}
+
+pomIncludeRepository := { _ => false }
+
+licenses := Seq("BSD-style" -> url("http://www.opensource.org/licenses/bsd-license.php"))
+
+homepage := Some(url("http://github.com/aconbere/scala-irc"))
+
+pomExtra := (
+ <scm>
+ <url>git@github.com:aconbere/scala-irc.git</url>
+ <connection>scm:git:git@github.com:aconbere/scala-irc.git</connection>
+ </scm>
+ <developers>
+ <developer>
+ <id>aconbere</id>
+ <name>Anders Conbere</name>
+ <url>http://anders.conbere.org</url>
+ </developer>
+ </developers>)

0 comments on commit 2799377

Please sign in to comment.