I have a problem where gradle overrides my local mavenDeployer repository settings in build.gradle when I have a mirror defined in the maven settings.xml file. I’ve tried to remove the mirror settings and then it works without any problems. Is there a workaround for this that does not involve changing the settings.xml file?
unfortunately I can’t reproduce the problem locally. I’ve defined a mirror in ~/.m2/settings.xml and in M2_HOME/conf/settings.xml and in my test project this does not affect the url mavenDeployer settings in my uploadArchive task.
Can you possibly share a settings.xml you’re using and provide the gradle debug output of the uploadArchives task?
My problem is similar but I have a mirror defined in my M2HOME/conf/settings.xml
When I change the mirrorOf to not mirror * then it works fine. It seems to me like the settings.xml has precedence over whatever is defined in build.gradle.