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

In my gradle.build file I do not list mavenCentral() or http://repo1.maven.org… 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.