-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sc
37 lines (36 loc) · 1.21 KB
/
build.sc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
// import Mill dependency
import mill._
import mill.scalalib._
import mill.scalalib.scalafmt.ScalafmtModule
import mill.scalalib.TestModule.Utest
// support BSP
import mill.bsp._
object playground extends ScalaModule with ScalafmtModule { m =>
val useChisel5 = false //true
override def scalaVersion = "2.13.10"
override def scalacOptions = Seq(
"-language:reflectiveCalls",
"-deprecation",
"-feature",
"-Xcheckinit"
)
override def ivyDeps = Agg(
if (useChisel5) ivy"org.chipsalliance::chisel:5.0.0" else
ivy"edu.berkeley.cs::chisel3:3.6.0",
)
override def scalacPluginIvyDeps = Agg(
if (useChisel5) ivy"org.chipsalliance:::chisel-plugin:5.0.0" else
ivy"edu.berkeley.cs:::chisel3-plugin:3.6.0",
)
object test extends ScalaTests with Utest {
override def ivyDeps = m.ivyDeps() ++ Agg(
ivy"com.lihaoyi::utest:0.8.1",
if (useChisel5) ivy"edu.berkeley.cs::chiseltest:5.0.0" else
ivy"edu.berkeley.cs::chiseltest:0.6.0",
)
}
def repositoriesTask = T.task { Seq(
coursier.MavenRepository("https://maven.aliyun.com/repository/central"),
coursier.MavenRepository("https://repo.scala-sbt.org/scalasbt/maven-releases"),
) ++ super.repositoriesTask() }
}