Как же я могу сделать это в Gradle: например.хотите использовать HTTPBuilder
в задании.
build.gradle:
repositories {
mavenRepo urls: "http://repository.codehaus.org"
}
configurations {
testConfig
}
dependencies {
testConfig 'org.codehaus.groovy.modules.http-builder:http-builder:0.5.0'
}
task someTaskThatUsesHTTPBuilder (dependsOn: configurations.testConfig) << {
new HTTPBuilder()// <--this cannot be resolved/found??
}