Skip to content

Commit

Permalink
Switched to SonaType publishing. Fixes issue typelevel#22.
Browse files Browse the repository at this point in the history
  • Loading branch information
rickynils committed Apr 10, 2012
1 parent 9b93ee2 commit 9106303
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 6 deletions.
38 changes: 32 additions & 6 deletions build.sbt
Expand Up @@ -2,7 +2,11 @@ name := "scalacheck"

version := "1.10-SNAPSHOT"

organization := "org.scala-tools.testing"
organization := "org.scalacheck"

licenses := Seq("BSD-style" -> url("http://www.opensource.org/licenses/bsd-license.php"))

homepage := Some(url("http://www.scalacheck.org"))

scalaVersion := "2.9.1"

Expand All @@ -14,8 +18,30 @@ javacOptions ++= Seq("-Xmx1024M")

scalacOptions += "-deprecation"

publishTo := Some("Scala Tools Nexus" at "http://nexus.scala-tools.org/content/repositories/snapshots/")

// publishTo := Some("Scala Tools Nexus" at "http://nexus.scala-tools.org/content/repositories/releases/")

credentials += Credentials(Path.userHome / ".ivy2" / ".credentials")
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")
}

publishMavenStyle := true

publishArtifact in Test := false

pomIncludeRepository := { _ => false }

pomExtra := (
<scm>
<url>git@github.com:rickynils/scalacheck.git</url>
<connection>scm:git:git@github.com:rickynils/scalacheck.git</connection>
</scm>
<developers>
<developer>
<id>rickynils</id>
<name>Rickard Nilsson</name>
<url>http://www.scalacheck.org</url>
</developer>
</developers>
)
3 changes: 3 additions & 0 deletions project/plugin.sbt
@@ -0,0 +1,3 @@
resolvers += Resolver.url("scalasbt", new URL("http://scalasbt.artifactoryonline.com/scalasbt/sbt-plugin-releases"))(Resolver.ivyStylePatterns)

addSbtPlugin("com.jsuereth" % "xsbt-gpg-plugin" % "0.5")

0 comments on commit 9106303

Please sign in to comment.