I have a maven settings.xml located in:
/home/u123/.m2/settings.xml
where I specify a remote maven repository:
You have to declare all repositories in your Gradle build script. settings.xml is only used to find the location of the local Maven repository, for example when resolving repositories { mavenLocal() }.
settings.xml
repositories { mavenLocal() }