我到底怎么能在 gradle 中做到这一点:例如。想HTTPBuilder
在任务中使用。
构建.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??
}