On Jun 12, 2008, at 3:45 PM, JerodLass wrote:


I am now exploring the idea of publishing to a repository, and I was
wondering if there's an easy way to do this. What I have tried so far is
along the lines of:

uploadLibs.configure{uploadResolvers.add(name: 'PublishRepo', url:
'http://server/published/maven/maven-repo', username: 'repoadmin', password:
'adminpass')}

Which would then add the resolver, associated with the repository, for
uploadLibs to publish to.  I noticed that gradle ends up calling ivy's
publish in the DefaultDependencyManager class, and I was just wondering how I can ship something out to a repo in gradle. My options are scp, sftp, and using webdav for an http publish (I also noticed some WebDav classes). Any
tips would be much appreciated.

You have to create for example an Ivy scp resolver in your gradlefile.

org.apache.ivy.plugins.resolver.SshResolver resolver = new SshResolver()
resolver.user = 'user'
resolver.userPassword = 'pw'
// further configuration

uploadLibs {
   uploadResolvers.add(resolver)
}

See http://ant.apache.org/ivy/history/latest-milestone/resolver/ ssh.html for all configuration options.

WebDav is not very well supported right now in Ivy. Gradle has created its own limited WebDav resolver but for what you want to do it is probably not sufficient.

- Hans


-Jerod
--
View this message in context: http://www.nabble.com/publish- tp17800341p17800341.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



--
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