I am migrating a simple Groovy script to Gradle, and it uses the MaxMind
GeoIP code, which I build into a JAR. For my script, I added it to
~/.groovy/lib and it all worked with the script Grapes.
Now I am migrating the Grapes into the dependencies. How do I refer to this
external JAR?
It's not a repo,
You can make it one:
allprojects {
repositories {
flatDir name: 'deps',
dirs: ['path-to-libdir']
}
}
and the artifact dependency doesn't mention directory
path...so I am confused.
It's mentioned somewhere, can't remember where:
project (':foo-bar') {
dependencies {
compile project (':foo-core')
compile fileTree (dir: 'path-to-libdir', includes: ['*.jar'])
}
}
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email