From ec00c4b9befe8e9c477c574abfba5360a9443ad3 Mon Sep 17 00:00:00 2001
From: Jim Lawson
Date: Tue, 6 Feb 2018 09:07:17 -0800
Subject: 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.
---
build.sbt | 35 +++++++++++++++++++++++++++++++++++
1 file changed, 35 insertions(+)
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 := http://chisel.eecs.berkeley.edu/
+
+
+ BSD-style
+ http://www.opensource.org/licenses/bsd-license.php
+ repo
+
+
+
+
+ jackbackrack
+ Jonathan Bachrach
+ http://www.eecs.berkeley.edu/~jrb/
+
+
+
+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)
--
cgit v1.2.3