diff --git a/build.sbt b/build.sbt index 882136c2..458d265d 100644 --- a/build.sbt +++ b/build.sbt @@ -1,46 +1,51 @@ -organization := "edu.berkeley.cs" +ThisBuild / organization := "edu.berkeley.cs" +ThisBuild / version := "1.1" +ThisBuild / scalaVersion := "2.12.10" + + +lazy val root = (project in file(".")) + .settings( + name := "testchipip", + scalacOptions += "-Xsource:2.11", + libraryDependencies += "edu.berkeley.cs" %% "rocketchip" % "1.5-SNAPSHOT", + libraryDependencies += "edu.berkeley.cs" %% "chisel3" % "3.5.5", + libraryDependencies += "edu.berkeley.cs" %% "rocketchipblocks" % "1.0-SNAPSHOT", + + publishMavenStyle := true, + + publishArtifact in Test := false, + + pomIncludeRepository := { x => false }, + + pomExtra := https://github.com/ucb-bar/testchipip + + + BSD-style + http://www.opensource.org/licenses/bsd-license.php + repo + + + + https://github.com/ucb-bar/testchipip.git + scm:git:github.com/ucb-bar/testchipip.git + , + + 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"), + Resolver.mavenLocal), + ) -version := "1.0-SNAPSHOT" -name := "testchipip" -scalaVersion := "2.12.10" - -scalacOptions += "-Xsource:2.11" - -libraryDependencies += "edu.berkeley.cs" %% "rocketchip" % "1.2.+" - -publishMavenStyle := true - -publishArtifact in Test := false - -pomIncludeRepository := { x => false } - -pomExtra := https://github.com/ucb-bar/testchipip - - - BSD-style - http://www.opensource.org/licenses/bsd-license.php - repo - - - - https://github.com/ucb-bar/testchipip.git - scm:git:github.com/ucb-bar/testchipip.git - - -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"), - Resolver.mavenLocal) diff --git a/project/build.properties b/project/build.properties index 0837f7a1..8b9a0b0a 100644 --- a/project/build.properties +++ b/project/build.properties @@ -1 +1 @@ -sbt.version=1.3.13 +sbt.version=1.8.0