Hi,
I'd like to add my plugin as a runtime dependency to whatever project
has applied it. I'm currently going with:
dependencies {
...
def r = getClass().getResource("GrailsPlugin.class")
if (r.protocol == "jar") {
def path = r.toString() - "jar:"
path = path[0..<(path.indexOf('!'))]
runtime files(new URL(path).file)
}
...
}
It's pretty ugly though. Is there a better approach?
Thanks,
Peter
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email