This message was deleted.
# community-support
s
This message was deleted.
👆 1
l
Try adding Maven Central before the plugin portal in your settings
pluginManagement
c
whoops… you mean this is a bad idea:
Copy code
repositories {
  gradlePluginPortal()
  mavenCentral()
}
l
Yes, swap it around. And if you want to optimize it, exclude specific plugin markers and artifacts from maven central resolution
e
you could also not wipe out caches, there are a set of directories that are documented safe to be copied. https://docs.gradle.org/current/userguide/dependency_management.html#sub:cache_copy
c
yeah… just realized this is uglier than I expected - that existing reference (in the
build-logic
project) is there because I have explicit non-plugin dependencies. What’s the timeline on an infrastructure fix for this before I commit to also adding an entirely new repositories section to the top level
settings.gradle
?
and this is breaking some of our internal builds too because they depend on an artifact that has a version range in it’s dependency set… so it wants to resolve the version range available in jcenter 🤷
e
you can use
content.(include|exclude)(Group|Module|Version)(ByRegex)?
in your repository definition to limit which artifacts Gradle will attempt to look up there