On Tue, Jan 18, 2011 at 4:27 PM, Luke Daley <[email protected]> wrote: > > 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.
I'm pretty sure you are wrong because otherwise there's no explanation for why my build.xml does work! > > The common solution to this seems to be to populate properties in > ~/.gradle/gradle.properties and then source them like this: Eventually, I'm hoping to store this in a central file ~/.gradle/gradle.properties is fine) but encrypted. Perhaps Gradle can add some support for that ... maybe better than the broken Maven support! > > https://github.com/geb/geb/blob/develop/build.gradle#L131 > --------------------------------------------------------------------- > To unsubscribe from this list, please visit: > > http://xircles.codehaus.org/manage_email > > > -- Howard M. Lewis Ship Creator of Apache Tapestry The source for Tapestry training, mentoring and support. Contact me to learn how I can get you up and productive in Tapestry fast! (971) 678-5210 http://howardlewisship.com --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email
