On May 25, 2009, at 7:54 PM, Luke Taylor wrote:

You can use the ant support, for example:

task getJython << {
ant.get(src: 'http://downloads.sourceforge.net/jython/jython_installer-2.5rc2.jar' , dest: 'jython-installer.jar')
}

Alternatively you could use the Gradle dependency management.

configurations {
        jython
}

dependencies {
        jython "jython:jython_installer:2.5rc2"
}

repositories {
        add(new org.apache.ivy.plugins.resolver.URLResolver()) {
name = "python_sf" // For non standard resolvers the name is required addArtifactPattern("http://downloads.sourceforge.net/ [organisation]/[artifact]-[revision].[ext]")
        }
}

task resolve << {
        println configurations.jython.resolve()
}

This will of course also cache the jython jar automatically.

In the future we will provide our own domain objects for repositories. ATM you have to use the native Ivy ones.

- Hans

--
Hans Dockter
Gradle Project Manager
http://www.gradle.org





---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email


Reply via email to