【发布时间】:2015-03-17 19:06:45
【问题描述】:
尝试通过 gradle 运行 Soapui 时,我遇到了异常。我正在使用最新的 gradle 2.3
* What went wrong:
A problem occurred evaluating root project 'gradle-builds'.
> Could not find method JCenter() for arguments [] on repository container.
贝洛斯是我的build.gradle。首先我在没有task wrapper 的情况下运行给了我同样的异常,然后我添加了task wrapper,但仍然得到了异常。有人可以帮忙吗?
task wrapper(type: Wrapper) {
gradleVersion = '2.3'
}
buildscript {
repositories {
JCenter()
}
dependencies {
compile files('C:/.../SoapUI-5.0.0/bin/soapui-5.0.0.jar')
compile fileTree(dir: "C:/.../SoapUI-5.0.0/lib", include: '*.jar')
classpath 'com.lv.plugins:soapui-gradle-plugin:VERSION'
}
}
soapui {
test {
projectFile = 'C:/Users/.../soapui-project.xml'
printReport = true
junitReport = true
}
tool {
projectFile = 'C:/../soapui-project.xml'
iface = 'IOrderService'
tool = 'wsi,axis1,axis2'
}
}
【问题讨论】:
-
很明显你根本没有尝试谷歌“JCenter()”。
-
@JaredBurrows 我确实尝试过,但没有注意到。可能是因为我从here复制粘贴。
-
啊!您应该尝试提出拉取请求来修复它。但接受@Opal 的回答。
-
我提交了一个拉取请求来解决这个问题。