On 19/01/2011, at 10:22 AM, Howard Lewis Ship wrote:

> uploadArchives {
>        repositories.mavenDeployer {
>            configuration = configurations.deployerJars
>            // settings.xml must contain <server> entry for
> howardlewisship.com with username and password
>            snapshotRepository(id: 'howardlewisship.com', url:
> "ftp://howardlewisship.com/snapshot-repository";) {
>              authentication(userName: '[email protected]',
> password: 'TOPSECRET')
>            }
> 
>        }
>    }
> }
> 
> 
> This works ... but notice that I have my userName and password in the
> authentication.  This shouldn't be necessary.  I have a
> ~/.m2/settings.xml:

I am relatively certain that the maven ant tasks do not source the m2 settings 
file.

The common solution to this seems to be to populate properties in 
~/.gradle/gradle.properties and then source them like this: 

https://github.com/geb/geb/blob/develop/build.gradle#L131
---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to