Skip to content

Commit

Permalink
Dedup apache dependencies in build.sbt
Browse files Browse the repository at this point in the history
  • Loading branch information
jerryz123 committed May 13, 2024
1 parent 6266e47 commit 40ff667
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -94,22 +94,21 @@ def isolateAllTests(tests: Seq[TestDefinition]) = tests map { test =>


lazy val chisel6Settings = Seq(
libraryDependencies ++= Seq("org.chipsalliance" %% "chisel" % "6.0.0",
"org.apache.commons" % "commons-lang3" % "3.12.0",
"org.apache.commons" % "commons-text" % "1.9"),
libraryDependencies ++= Seq("org.chipsalliance" %% "chisel" % "6.0.0"),
addCompilerPlugin("org.chipsalliance" % "chisel-plugin" % "6.0.0" cross CrossVersion.full)
)
lazy val chisel3Settings = Seq(
libraryDependencies ++= Seq("edu.berkeley.cs" %% "chisel3" % "3.6.0"),
addCompilerPlugin("edu.berkeley.cs" % "chisel3-plugin" % "3.6.0" cross CrossVersion.full)
)

lazy val chiselSettings = (if (chisel6) chisel6Settings else chisel3Settings) ++ Seq(
libraryDependencies ++= Seq(
"edu.berkeley.cs" %% "chisel3" % "3.6.0",
"org.apache.commons" % "commons-lang3" % "3.12.0",
"org.apache.commons" % "commons-text" % "1.9"
),
addCompilerPlugin("edu.berkeley.cs" % "chisel3-plugin" % "3.6.0" cross CrossVersion.full)
)
)

lazy val chiselSettings = if (chisel6) chisel6Settings else chisel3Settings


// Subproject definitions begin

Expand Down

0 comments on commit 40ff667

Please sign in to comment.