How to store private Artifactory Configuration like Username and Password “in” or “beside” my build script? Of course without sharen it in the source-repository.
There are different solutions for that.
The simplest way is to store your username and password in “~/.gradle/gradle.properties”. Properties defined in this file are automatically available in gradle builds.
Another solution is to “inject” the username/password properties from the command line (using -P options). IMHO “injecting” these properties is a good alternative to option 1 on CI server.
regards, René