diff --git a/.gitignore b/.gitignore
index 857745e..3d12be9 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,4 +1,4 @@
-project
+project/target
target
ucli.key
.*.swp
diff --git a/build.sbt b/build.sbt
index 3948e72..a10c0e6 100644
--- a/build.sbt
+++ b/build.sbt
@@ -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 := http://chisel.eecs.berkeley.edu/
+
+
+ BSD-style
+ http://www.opensource.org/licenses/bsd-license.php
+ repo
+
+
+
+ https://github.com/ucb-bar/berkeley-hardfloat.git
+ scm:git:github.com/ucb-bar/berkeley-hardfloat.git
+
+
+
+ jhauser-ucberkeley
+ John Hauser
+
+
+ aswaterman
+ Andrew Waterman
+
+
+ yunsup
+ Yunsup Lee
+
+
+
+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")
+ }
+}
diff --git a/project/build.properties b/project/build.properties
new file mode 100644
index 0000000..a919a9b
--- /dev/null
+++ b/project/build.properties
@@ -0,0 +1 @@
+sbt.version=1.3.8