-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.sc
More file actions
29 lines (26 loc) · 833 Bytes
/
build.sc
File metadata and controls
29 lines (26 loc) · 833 Bytes
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
import mill._
import scalalib._
import coursier.maven.MavenRepository
val sonatypeReleases = Seq(
MavenRepository("https://oss.sonatype.org/content/repositories/releases")
)
val spinalVersion = "1.10.1"
object riscv extends SbtModule {
def scalaVersion = "2.13.12"
override def millSourcePath = os.pwd
def ivyDeps = Agg(
ivy"com.github.spinalhdl::spinalhdl-core:$spinalVersion",
ivy"com.github.spinalhdl::spinalhdl-lib:$spinalVersion"
)
def scalacPluginIvyDeps = Agg(
ivy"com.github.spinalhdl::spinalhdl-idsl-plugin:$spinalVersion"
)
def repositoriesTask = T.task {
super.repositoriesTask() ++ sonatypeReleases
}
object test extends SbtModuleTests with TestModule.ScalaTest {
override def ivyDeps = super.ivyDeps() ++ Agg(
ivy"org.scalatest::scalatest::3.2.18"
)
}
}