I've been struggling with the following problem and was wondering if someone
could provide some input. I have a build.groovy file that looks like this:
---------
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath group: 'org.codehaus.groovy.modules.http-builder', name:
'http-builder', version: '0.5.1'
classpath group: 'org.apache.httpcomponents', name: 'httpmime',
version: '4.0.3'
}
}
apply from: 'foo.gradle'
---------
'foo.gradle' looks like this:
---------
import groovyx.net.http.HTTPBuilder
---------
When I try to run this, I get the following error message:
---------
FAILURE: Build failed with an exception.
* Where:
Script '/Users/vkolovos/tmp/gradle_test/foo.gradle' line: 1
* What went wrong:
Could not compile script '/Users/vkolovos/tmp/gradle_test/foo.gradle'.
Cause: startup failed:
foo_gradle_495579c887a12fafdbde158b7a388d3f: 1: unable to resolve class
groovyx.net.http.HTTPBuilder
@ line 1, column 1.
import groovyx.net.http.HTTPBuilder
^
1 error
---------
If I do the import directly in the 'build.gradle' file, it works fine, but I'd
really rather not have to import all of my classes in that file. Does anyone
have any suggestions as to what I might be doing wrong?
Thanks,
Val
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email