gradle 2.3 中的 Jcenter() 异常
Jcenter() exception in gradle 2.3
我在尝试 运行 Soapui 到 gradle 时遇到异常。我正在使用最新的 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()
全部小写。 See 文档。
我在尝试 运行 Soapui 到 gradle 时遇到异常。我正在使用最新的 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()
全部小写。 See 文档。