Grails gradle 2.3中的Jcenter()异常
当试图通过gradle运行Soapui时,我遇到以下异常。我正在使用最新的gradle 2.3Grails gradle 2.3中的Jcenter()异常,grails,gradle,Grails,Gradle,当试图通过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。首先,我运行时没有任务包装器给出相同的异常,然后我
* 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(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()
全部小写。文档。很明显,你根本没有用谷歌搜索“JCenter()”。@JaredBurrows我试过了,但没有注意到。可能是因为我是复制粘贴过来的。啊!您应该尝试提出拉取请求来修复它。但是接受@Opal的回答。我提交了一个请求来解决这个问题。谢谢!这个例外消失了。太好了;]请接受答案:)它不会让我这么快。再过2分钟。:)