I recently started using maven repo (proxy/nexus) instead of a shared network drive ivy repo because gradle was unable to cache “file:…” urls and every small network break (or something, never found out the actual reason) did confuse eclipse. (Also maintaining the repo manually became too hard work). Nexus seems superior in every but one area: a password is needed (I want authentication) whereas with ivy network drive was using OS level authentication.
I do not want to store the password in plain text anywhere if it can be avoided. So far https://github.com/etiennestuder/gradle-credentials-plugin has worked pretty well. Except I would like the build to be independent of the external network, so I would like to use the proxy even in the buildscript part. I is somewhat chicken and egg problem since I need the credentials plugin from somewhere. I could maybe store it in the version control but that seems counterintuitive because thats the reason I’m trying to use gradle in the first place (avoid storing libs in version control).
Any best practices how this should be done? Is it possible to apply a plugin for the buildscript part?
I would like the build be as portable as possible (within internal network)