Possible to restrict what maven repositories are used?
rcolombo opened this issue · 2 comments
rcolombo commented
I only want this plugin to scan https://repo1.maven.org/maven2/. Is this possible?
ben-manes commented
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.
rcolombo commented
Thank you!