aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Lawson2018-02-06 09:07:17 -0800
committerGitHub2018-02-06 09:07:17 -0800
commitec00c4b9befe8e9c477c574abfba5360a9443ad3 (patch)
treef42295a4926608935c491cb21f40e8be45efd014
parent1fe1b6671a02de613f3cab87dd81526ac1417d39 (diff)
Updatefromrelease - Incorporate lessons learned from latest publishing. (#656)
* Initial 0.1-BETA release. * Update publish clauses. * Bump version after rebuilding with Java 1.7 * Update to current sbt resolver idiom. * Bump version * Revert "Bump version" This reverts commit 37ce060329d437c4494dd1560c1fb8a65a7a0718. * Bump version. * Update installation instructions with sbt publish-local. * set release version * bump release versions * bump SNAPSHOT version * bump version * update deprecated sbt code * Drop pomExtra scm definitions (now generated by git.remoteRepo. * Incorporate lesssons learned from latest publishing. * Bump testing coverage for Scala 2.12 support. * Respond to review requests - unindent changes; unbump plugins version.
-rw-r--r--build.sbt35
1 files changed, 35 insertions, 0 deletions
diff --git a/build.sbt b/build.sbt
index 16159a0e..069aa974 100644
--- a/build.sbt
+++ b/build.sbt
@@ -84,6 +84,41 @@ antlr4PackageName in Antlr4 := Option("firrtl.antlr")
antlr4Version in Antlr4 := "4.7"
+publishMavenStyle := true
+publishArtifact in Test := false
+pomIncludeRepository := { x => false }
+// Don't add 'scm' elements if we have a git.remoteRepo definition.
+pomExtra := <url>http://chisel.eecs.berkeley.edu/</url>
+ <licenses>
+ <license>
+ <name>BSD-style</name>
+ <url>http://www.opensource.org/licenses/bsd-license.php</url>
+ <distribution>repo</distribution>
+ </license>
+ </licenses>
+ <developers>
+ <developer>
+ <id>jackbackrack</id>
+ <name>Jonathan Bachrach</name>
+ <url>http://www.eecs.berkeley.edu/~jrb/</url>
+ </developer>
+ </developers>
+
+publishTo := {
+ val v = version.value
+ 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")
+ }
+}
+
+resolvers ++= Seq(
+ Resolver.sonatypeRepo("snapshots"),
+ Resolver.sonatypeRepo("releases")
+)
+
// ScalaDoc
enablePlugins(ScalaUnidocPlugin)