To use the class directly in your build script, you need to declare a dependency as part of the script class path in closing buildscript {}. For instance:
buildscript {
repositories {
mavenRepo urls: "http://repository.codehaus.org"
}
dependencies {
classpath 'org.codehaus.groovy.modules.http-builder:http-builder:0.5.0'
}
}
source
share