Permalink
Browse files

Added the PGP plugin and configured it in preperation for moving arti…

…facts to oss.sonatype.org
  • Loading branch information...
1 parent 6ca4165 commit aab838ccc1529cb69a6a3d66140ada910a70cf59 @timperrett committed Jan 24, 2012
Showing with 7 additions and 2 deletions.
  1. +7 −2 project/build.scala
View
@@ -17,8 +17,13 @@ object BuildSettings {
"Shiro Releases" at "https://repository.apache.org/content/repositories/releases/",
"Shiro Snapshots" at "https://repository.apache.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
)
}

0 comments on commit aab838c

Please sign in to comment.