This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

sonatype publishing

  • Loading branch information...
n8han committed Mar 3, 2012
1 parent acc6b33 commit 02756b1b9e1357a7cc3b04f5d98a048f5c4c8b35
Showing with 29 additions and 6 deletions.
  1. +29 −6 project/build.scala
View
@@ -16,12 +16,31 @@ object Dispatch extends Build {
case _ => "org.scala-tools.testing" %% "specs" % "1.6.9" % "test"
})
},
- publishArtifact in packageDoc := false, // doesn't work, don't use
- publishTo := Some("Scala Tools Nexus" at
- "http://nexus.scala-tools.org/content/repositories/releases/"),
+ 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")
+ },
credentials += Credentials(Path.userHome / ".ivy2" / ".credentials"),
homepage :=
- Some(new java.net.URL("http://dispatch.databinder.net/"))
+ Some(new java.net.URL("http://dispatch.databinder.net/")),
+ publishArtifact in Test := false,
+ licenses := Seq("LGPL v3" -> url("http://www.gnu.org/licenses/lgpl.txt")),
+ pomExtra := (
+ <scm>
+ <url>git@github.com:dispatch/reboot.git</url>
+ <connection>scm:git:git@github.com:dispatch/reboot.git</connection>
+ </scm>
+ <developers>
+ <developer>
+ <id>n8han</id>
+ <name>Nathan Hamblen</name>
+ <url>http://twitter.com/n8han</url>
+ </developer>
+ </developers>)
)
val httpShared = shared ++ Seq(
libraryDependencies +=
@@ -41,7 +60,9 @@ object Dispatch extends Build {
)
lazy val futures =
Project("dispatch-futures", file("futures"), settings = shared ++ Seq(
- description := "Common interface to Java and Scala futures"
+ description := "Common interface to Java and Scala futures",
+ // https://github.com/harrah/xsbt/issues/85#issuecomment-1687483
+ unmanagedClasspath in Compile += Attributed.blank(new java.io.File("doesnotexist"))
))
lazy val core =
Project("dispatch-core", file("core"), settings = httpShared ++ Seq(
@@ -80,7 +101,9 @@ object Dispatch extends Build {
)) dependsOn(core)
lazy val json =
Project("dispatch-json", file("json"), settings = shared ++ Seq(
- description := "A JSON parser"
+ description := "A JSON parser",
+ // https://github.com/harrah/xsbt/issues/85#issuecomment-1687483
+ unmanagedClasspath in Compile += Attributed.blank(new java.io.File("doesnotexist"))
))
lazy val http_json =
Project("dispatch-http-json", file("http+json"),

0 comments on commit 02756b1

Please sign in to comment.