On Jun 19, 2008, at 4:12 PM, JerodLass wrote:


I finally got back around to trying this, and the compiler has trouble
finding the class SshResolver. If I use the full path of the class in the
second SshResolver in the line, it then has trouble finding the class
com.jcraft.jsch.JSchException, which is in a different library. I have declared a dependency on Ivy in my settings file (though I tried without it first) and I also put in a dependency on jsch 0.1.38, which I would think would be resolved as a transitive dependency, but we still have a problem
with JSchException.  How can I get this ivy class to work for me?

Ivy is per default in the build script classpath. It does not need to be added to the settings.gradle.

Adding JSch to the settings.gradle file is what I would have done as well. I don't know yet why this does not work. I gonna try this out soon.

- Hans


-Jerod


hdockter wrote:


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





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