ben-manes/gradle-versions-plugin

Possible to restrict what maven repositories are used?

rcolombo opened this issue · 2 comments

I only want this plugin to scan https://repo1.maven.org/maven2/. Is this possible?

sure, just remove all the other repositories in a doFirst action, e.g.

tasks.dependencyUpdates.doFirst {
  repositories.clear()
  repositories {
    mavenCentral()
  }
}

Alternatively, you might use repository content filtering to avoid scanning the wrong repositories if you are trying to speed up the queries.

Thank you!