Skip to content

Commit 2bac0d2

Browse files
committed
Make the core module respect custom repositories
1 parent 7c8e831 commit 2bac0d2

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

build.sc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -368,6 +368,7 @@ trait Core extends ScalaCliCrossSbtModule
368368
with HasTests
369369
with ScalaCliScalafixModule {
370370
def crossScalaVersion = crossValue
371+
371372
def moduleDeps = Seq(
372373
config(crossScalaVersion)
373374
)
@@ -378,6 +379,9 @@ trait Core extends ScalaCliCrossSbtModule
378379
super.scalacOptions() ++ asyncScalacOptions(crossScalaVersion)
379380
}
380381

382+
def repositoriesTask =
383+
T.task(super.repositoriesTask() ++ deps.customRepositories)
384+
381385
def ivyDeps = super.ivyDeps() ++ Agg(
382386
Deps.bloopRifle.exclude(("org.scala-lang.modules", "scala-collection-compat_2.13")),
383387
Deps.collectionCompat,

modules/integration/src/test/scala/scala/cli/integration/BloopTests.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ class BloopTests extends ScalaCliSuite {
245245
{
246246
val bloopSnapshotVersion = "2.0.6-51-38c118d4-SNAPSHOT"
247247
test(s"compilation works with a Bloop snapshot version: $bloopSnapshotVersion") {
248-
val input = "script.sc"
248+
val input = "script.sc"
249249
TestInputs(os.rel / input -> """println("Hello")""").fromRoot { root =>
250250
os.proc(TestUtil.cli, "compile", input, "--bloop-version", bloopSnapshotVersion)
251251
.call(cwd = root)

0 commit comments

Comments
 (0)