From 180e4bc0c55215d2b433fcd6a9ce810abf9daff2 Mon Sep 17 00:00:00 2001 From: Jiuyang Liu Date: Wed, 15 Nov 2023 14:27:49 +0800 Subject: [PATCH] add sonatype snapshots repo for test chisel releases (#3527) --- build.sc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/build.sc b/build.sc index 4442891b0e7..f139ab528d5 100644 --- a/build.sc +++ b/build.sc @@ -15,6 +15,9 @@ object v { val mainargs = ivy"com.lihaoyi::mainargs:0.5.0" val json4sJackson = ivy"org.json4s::json4s-jackson:4.0.5" val scalaReflect = ivy"org.scala-lang:scala-reflect:${scala}" + val sonatypesSnapshots = Seq( + MavenRepository("https://s01.oss.sonatype.org/content/repositories/snapshots") + ) } object macros extends Macros @@ -47,6 +50,8 @@ trait Hardfloat def chiselIvy = Some(v.chiselCrossVersions(crossValue)._1) def chiselPluginIvy = Some(v.chiselCrossVersions(crossValue)._2) + + def repositoriesTask = T.task(super.repositoriesTask() ++ v.sonatypesSnapshots) } object cde extends CDE @@ -89,6 +94,8 @@ trait RocketChip def mainargsIvy = v.mainargs def json4sJacksonIvy = v.json4sJackson + + def repositoriesTask = T.task(super.repositoriesTask() ++ v.sonatypesSnapshots) } trait RocketChipPublishModule