Hi Russel,

On Jan 10, 2009, at 1:54 PM, Russel Winder wrote:

From the manual I see things like:

repository(url: "ssh://localhost/tmp/myRepo/") {
              authentication(userName: "me", password: "myPassword")


which implies having a username and password in the Gradle file.  This
has to be "bad news".  Maven stores information in ~/.m2/settings.xml,
shouldn't Gradle do something analogous?

Of course we don't expect our users to store passwords in the build script. What you would do, is to use a gradle.properties placed in USER_HOME/.gradle.
You would write for example:

repoUser=me
repoPassword=pw

In your build script you can access this properties like normal script variables.

authentication(userName: repoUser, password: repoPassword)

- Hans

--
Hans Dockter
Gradle Project lead
http://www.gradle.org





---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email


Reply via email to