Using An External And Authentication Required Maven Repository With Gradle

İbrahim Gündüz
Developer Space
Published in
2 min readJun 10, 2019

--

If you need to access an external artifact repository that requires authentication, I’m sure you would not like to keep the repository credentials in the build configuration under version control. However, you might need to access the repository from your dev or CI environments. So if you wonder what the solution is, continue reading.

You have two options:

You can leave the credentials as a variable in the Gradle configuration and either you can pass them from…

--

--