Question regarding repositories

Hi All,
I have a Sonatye Nexus installation which should act as a proxy for mavencentral and other repos.
Now I removed all other repo declarations and only have the URL of my Nexus.

repositories {
    maven {
        url "http://builde.local:8081/nexus/content/repositories/central/"
    }
}

After that I deleted the dependencies from my local cache and started a rebuild
But what I saw was

Download https://repo1.maven.org/maven2/com/apple/AppleJavaExtensions/1.4/AppleJavaExtensions-1.4.jar

So gradle wasn’t downloading from my proxy repo, instead it took “repo1.maven.org”.
But why is this happening? I did not declare any other repo’s than the one from above.
Is this some automatism or what else did I do wrong?

Thanks for any Help!

There is no automatism in gradle to resolve from maven central. Somewhere in your build must still be a repository declared. that can be

  • via configuration injection from a parent project in your multiproject build
  • via a custom plugin
  • via an init file.