Skip to content

Instantly share code, notes, and snippets.

@jboyens
Created March 15, 2010 21:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jboyens/333354 to your computer and use it in GitHub Desktop.
Save jboyens/333354 to your computer and use it in GitHub Desktop.
import org.apache.ivy.plugins.resolver.*
import org.apache.ivy.core.settings.IvySettings
...
def r = new URLResolver()
r.addArtifactPattern("http://repo1.maven.org/maven2/[organization]/[module]/[revision]/[artifact]-[revision]-jdk15.[ext]")
r.m2compatible = true
def ivySettings = new IvySettings()
ivySettings.defaultInit()
r.settings = ivySettings
resolver(r)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment