Skip to content

Commit dd336a4

Browse files
authored
Update deprecated code in build.sbt (freechipsproject#160)
1 parent 34a7d88 commit dd336a4

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

build.sbt

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ pomExtra := (<url>http://chisel.eecs.berkeley.edu/</url>
4646
</developers>)
4747

4848

49-
publishTo <<= version { v: String =>
49+
publishTo := {
50+
val v = version.value
5051
val nexus = "https://oss.sonatype.org/"
5152
if (v.trim.endsWith("SNAPSHOT")) {
5253
Some("snapshots" at nexus + "content/repositories/snapshots")
@@ -64,6 +65,9 @@ resolvers ++= Seq(
6465

6566
scalacOptions := Seq("-deprecation")
6667

67-
scalacOptions in (Compile, doc) <++= (baseDirectory, version) map { (bd, v) =>
68-
Seq("-diagrams", "-diagrams-max-classes", "25", "-sourcepath", bd.getAbsolutePath, "-doc-source-url", "https://github.com/ucb-bar/chisel-testers/tree/master/€{FILE_PATH}.scala")
69-
}
68+
scalacOptions in (Compile, doc) ++= Seq(
69+
"-diagrams",
70+
"-diagrams-max-classes", "25",
71+
"-sourcepath", baseDirectory.value.getAbsolutePath,
72+
"-doc-source-url", "https://github.com/ucb-bar/chisel-testers/tree/master/€{FILE_PATH}.scala"
73+
)

0 commit comments

Comments
 (0)