Skip to content

Commit

Permalink
Merge pull request #42 from ucb-bar/sbt_add_publish
Browse files Browse the repository at this point in the history
Support publishing

(cherry picked from commit 2d62602)
  • Loading branch information
ucbjrl committed Mar 10, 2020
1 parent a7c3c38 commit c0b3ab8
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
project
project/target
target
ucli.key
.*.swp
Expand Down
43 changes: 43 additions & 0 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,46 @@ val defaultVersions = Map("chisel3" -> "3.2.4")
libraryDependencies ++= (Seq("chisel3").map {
dep: String => "edu.berkeley.cs" %% dep % sys.props.getOrElse(dep + "Version", defaultVersions(dep))
})

publishMavenStyle := true
publishArtifact in Test := false
pomIncludeRepository := { x => false }
// Don't add 'scm' elements if we have a git.remoteRepo definition,
// but since we don't (with the removal of ghpages), add them in below.
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>
<scm>
<url>https://github.com/ucb-bar/berkeley-hardfloat.git</url>
<connection>scm:git:github.com/ucb-bar/berkeley-hardfloat.git</connection>
</scm>
<developers>
<developer>
<id>jhauser-ucberkeley</id>
<name>John Hauser</name>
</developer>
<developer>
<id>aswaterman</id>
<name>Andrew Waterman</name>
</developer>
<developer>
<id>yunsup</id>
<name>Yunsup Lee</name>
</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")
}
}
1 change: 1 addition & 0 deletions project/build.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
sbt.version=1.3.8

0 comments on commit c0b3ab8

Please sign in to comment.