Maven central repository is used even though the does not have any references

In my file I do not list mavenCentral() or… in the repositories section. Yet gradle downloads the included jar and all its dependencies from maven central.

How can I stop this from happening. I want to use the internal company repository only.

Can you post a small build file that duplicates this issue?

Gradle will only download from Maven Central if it is configured somewhere. This could be a ‘build.gradle’, ‘~/.gradle/init.gradle’, third-party plugin applied in ‘build.gradle’, etc.