diff --git a/metals/src/main/scala/scala/meta/internal/metals/JarSourcesProvider.scala b/metals/src/main/scala/scala/meta/internal/metals/JarSourcesProvider.scala index d27810e723e..0f77839ec1b 100644 --- a/metals/src/main/scala/scala/meta/internal/metals/JarSourcesProvider.scala +++ b/metals/src/main/scala/scala/meta/internal/metals/JarSourcesProvider.scala @@ -146,7 +146,7 @@ object JarSourcesProvider { val repositories = List(Repositories.central, sbtMaven, metalsPluginSnapshots) Fetch() - .withRepositories(repositories) + .addRepositories(repositories*) .withDependencies(Seq(dependency)) .addClassifiers(Classifier.sources) .future()