Disable repo.maven.apache.org

It is possible to somehow disable maven central repository in Gradle?
I want to use only the company artifactory and Gradle should not use any other repo.
I have defined just my repo in the project repo, but Gradle still using repo.maven.apache.org

As far as I know, Gradle doesn’t configure a Maven repository for use by default. It might be added by some plugin.

To verify, you can create a clean Gradle project, add some dependency and see if it searches Maven Central.

To find where this repository is added, you can try following a suggestion from this GitHub issue: Fully disable jCenter repository, to print all stack traces when repositories are defined.

Thanks. It was really caused by 3rd party plugin.