-
Notifications
You must be signed in to change notification settings - Fork 27
/
build.sc
39 lines (34 loc) · 1.22 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
38
39
// import Mill dependency
import mill._
import mill.define.Sources
import mill.modules.Util
import mill.scalalib.scalafmt.ScalafmtModule
import mill.scalalib.TestModule.ScalaTest
import mill.scalalib._
// support BSP
import mill.bsp._
object playground extends ScalaModule with ScalafmtModule { m =>
override def scalaVersion = "2.13.15"
override def scalacOptions = Seq(
"-language:reflectiveCalls",
"-deprecation",
"-feature",
"-Xcheckinit"
)
override def ivyDeps = Agg(ivy"org.chipsalliance::chisel:6.6.0")
override def scalacPluginIvyDeps = Agg(ivy"org.chipsalliance:::chisel-plugin:6.6.0")
object test extends ScalaTests with TestModule.ScalaTest with ScalafmtModule {
override def ivyDeps = m.ivyDeps() ++ Agg(
ivy"org.scalatest::scalatest::3.2.19",
// for formal flow in future
ivy"edu.berkeley.cs::chiseltest:6.0.0"
)
}
def repositoriesTask = T.task {
Seq(
coursier.MavenRepository("https://repo.scala-sbt.org/scalasbt/maven-releases"),
coursier.MavenRepository("https://oss.sonatype.org/content/repositories/releases"),
coursier.MavenRepository("https://oss.sonatype.org/content/repositories/snapshots")
) ++ super.repositoriesTask()
}
}