尝试通过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.
Belos是我的
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'
}
}
最佳答案
关于grails - Gradle 2.3中的Jcenter()异常,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29107648/