Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Modified deployment to push to Sonatype

  • Loading branch information...
commit 9575785b2ad78d6115d531552c6942df15173d3a 1 parent 2c30ffe
@djspiewak authored
Showing with 33 additions and 6 deletions.
  1. +29 −6 build.sbt
  2. +4 −0 project/plugins.sbt
View
35 build.sbt
@@ -4,6 +4,10 @@ organization := "com.codecommit"
version := "2.0-SNAPSHOT"
+licenses := Seq("BSD-style" -> url("http://www.opensource.org/licenses/bsd-license.php"))
+
+homepage := Some(url("https://github.com/djspiewak/gll-combinators"))
+
scalaVersion := "2.9.1"
libraryDependencies ++= Seq(
@@ -12,10 +16,29 @@ libraryDependencies ++= Seq(
publishArtifact in (Compile, packageDoc) := false
-credentials += Credentials(Path.userHome / ".ivy2" / ".rgcredentials")
+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 }
-publishTo <<= (version) { version: String =>
- val nexus = "http://nexus.reportgrid.com/content/repositories/"
- if (version.trim.endsWith("SNAPSHOT")) Some("snapshots" at nexus+"snapshots/")
- else Some("releases" at nexus+"releases/")
-}
+pomExtra := (
+ <scm>
+ <url>git://github.com/djspiewak/gll-combinators.git</url>
+ <connection>scm:git:git://github.com/djspiewak/gll-combinators.git</connection>
+ </scm>
+ <developers>
+ <developer>
+ <id>djspiewak</id>
+ <name>Daniel Spiewak</name>
+ <url>http://www.codecommit.com/blog</url>
+ </developer>
+ </developers>)
View
4 project/plugins.sbt
@@ -1,3 +1,7 @@
+resolvers += Resolver.url("sbt-plugin-releases", new URL("http://scalasbt.artifactoryonline.com/scalasbt/sbt-plugin-releases"))(Resolver.ivyStylePatterns)
+
+addSbtPlugin("com.jsuereth" % "xsbt-gpg-plugin" % "0.5")
+
resolvers += "Scala-Tools Maven2 Snapshots Repository" at "http://scala-tools.org/repo-snapshots"
addSbtPlugin("org.ensime" % "ensime-sbt-cmd" % "0.0.7")
Please sign in to comment.
Something went wrong with that request. Please try again.