Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

add release stuff

  • Loading branch information...
commit a70b9141845409e8153ef3687bebc5893b2ad4f4 1 parent 707a808
@ymasory authored
Showing with 55 additions and 0 deletions.
  1. +53 −0 build.sbt
  2. +2 −0  project/plugins.sbt
View
53 build.sbt
@@ -63,3 +63,56 @@ sourceGenerators in Compile <+= buildInfo
buildInfoKeys := Seq[Scoped](name, version, scalaVersion, sbtVersion)
buildInfoPackage := "com.example"
+
+//publishing
+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")
+}
+
+publishArtifact in Test := false
+
+pomIncludeRepository := { _ => false }
+
+pomExtra := (
+ <url>https://github.com/ACCOUNT/MYPROJ</url>
+ <licenses>
+ <license>
+ <name>LICENSE NAME</name>
+ <url>https://github.com/ACCOUNT/MYPROJ/blob/master/LICENSE</url>
+ <distribution>repo</distribution>
+ </license>
+ </licenses>
+ <scm>
+ <url>git@github.com:ACCOUNT/MYPROJ.git</url>
+ <connection>scm:git:git@github.com:ACCOUNT/MYPROJ.git</connection>
+ </scm>
+ <developers>
+ <developer>
+ <id>HANDLE</id>
+ <name>MY FULL NAME</name>
+ <email>EMAIL</email>
+ <url>HOMEPAGE</url>
+ </developer>
+ </developers>
+)
+
+// pgpPassphrase := Some("PASSWORD".toCharArray)
+
+// pgpSigningKey := Some(0L)
+
+// pgpSecretRing := file("/path/to/file")
+
+// pgpPublicRing := file("/path/to/file")
+
+// credentials += Credentials(
+// "Sonatype Nexus Repository Manager",
+// "oss.sonatype.org",
+// "ACCOUNT",
+// IO read file("/path/to/file")
+// )
View
2  project/plugins.sbt
@@ -20,3 +20,5 @@ resolvers += Classpaths.typesafeResolver
addSbtPlugin("com.typesafe.startscript" % "xsbt-start-script-plugin" % "0.5.2")
addSbtPlugin("com.eed3si9n" % "sbt-buildinfo" % "0.1.2")
+
+addSbtPlugin("com.jsuereth" % "xsbt-gpg-plugin" % "0.6")
Please sign in to comment.
Something went wrong with that request. Please try again.