I have a maven settings.xml located in:
/home/u123/.m2/settings.xml
where I specify a remote maven repository:
I used maven-publish, maven-publish-auth plugins to accomplish this without parsing the settings by hand
How can Gradle Use Repository Settings From Maven's Settings.xml to publish artifacts
Hope it is of use.
Peter