Your call to 'credentials' is expecting a Closure as an argument, so you
should be able to call it like this:
maven {
credentials (archivaCredentials)
url "http://archiva.abc.com/archiva/repository/public/"
}
maven {
credentials (archivaCredentials)
url "http://archiva.abc.com/archiva/repository/fallback/"
}
...
private Closure archivaCredentials = {
username archiva_username
password archiva_password
}
Note that I haven't tested this, but the syntax should be correct.
--
View this message in context:
http://gradle.1045684.n5.nabble.com/HowTo-Maven-credentials-reuse-tp5709845p5709854.html
Sent from the gradle-user mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email