Skip to content

Commit 2411d62

Browse files
authored
Use snapshot repo to download stubs (#1693)
1 parent 26bd940 commit 2411d62

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/options/src/main/scala/scala/build/Artifacts.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -323,12 +323,12 @@ object Artifacts {
323323
if (addStubs) {
324324
val maybeSnapshotRepo =
325325
if (stubsVersion.endsWith("SNAPSHOT"))
326-
Seq(coursier.Repositories.sonatype("snapshots").root)
326+
Seq(coursier.Repositories.sonatype("snapshots"))
327327
else Nil
328328
value {
329329
artifacts(
330330
Positioned.none(Seq(dep"$stubsOrganization:$stubsModuleName:$stubsVersion")),
331-
allExtraRepositories,
331+
allExtraRepositories ++ maybeSnapshotRepo,
332332
scalaArtifactsParamsOpt.map(_.params),
333333
logger,
334334
cache.withMessage("Downloading internal stub dependency")

0 commit comments

Comments
 (0)