Private Configuration

(Ansgar Brauner) #1

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.

(René Groeschke) #2

There are different solutions for that.

The simplest way is to store your username and password in “~/.gradle/”. 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é