【发布时间】:2018-03-28 18:36:05
【问题描述】:
我怎么能在 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??
}
【问题讨论】:
标签: dependencies task gradle