On 7/07/10 8:03 AM, John Murph wrote:
I have older code that depends on gwt-incubator version 1.4 final. I
cannot find this version in a Maven repo anywhere, but I did find a
URL on googlecode.com <http://googlecode.com>. So, I thought I might
be able to do:
dependencies {
compile
uri('http://google-web-toolkit-incubator.googlecode.com/files/gwt-incubator_1-4_final.jar')
}
But this doesn't work. Anyone have ideas on how to get Gradle to pull
down this jar for me?
I think you can do something like:
dependencies {
compile ('gwt-incubator:gwt-incubator:1.4') {
artifact {
name = 'gwt-incubator'
extension = 'jar'
url = 'http://....'
}
}
}
At some point, I'd like add a way to construct a FileCollection from a
set of arbitrary URLs. For example, the files() method might end up
handling arbitrary URLs. Then you could do something pretty much like
what you tried above:
dependencies {
compile files('http://....')
}
--
Adam Murdoch
Gradle Developer
http://www.gradle.org
CTO, Gradle Inc. - Gradle Training, Support, Consulting
http://www.gradle.biz