aboutsummaryrefslogtreecommitdiff
path: root/publish.sbt
diff options
context:
space:
mode:
Diffstat (limited to 'publish.sbt')
-rw-r--r--publish.sbt18
1 files changed, 18 insertions, 0 deletions
diff --git a/publish.sbt b/publish.sbt
new file mode 100644
index 0000000..86c48bd
--- /dev/null
+++ b/publish.sbt
@@ -0,0 +1,18 @@
+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 :=
+ Helpers.generatePomExtra("git@github.com:sbt/sbt-boilerplate.git",
+ "scm:git:git@github.com:sbt/sbt-boilerplate.git",
+ "jrudolph", "Johannes Rudolph")
+
+useGpg := true