错误 没有方法签名:org.gradle.util.NameValidator.asValidName()适用于参数类型:(org.codehaus.groovy.runtime.GStringImpl)值:[pactVerify_Our_Provider]
pact {
serviceProviders {
'Our_Provider' {
port = 8080
startProviderTask = startProvider
terminateProviderTask = stopProvider
stateChangeUrl = url('http://localhost:8080/pactStateChange')
if (project.hasProperty('pactBrokerUser') && pactBrokerUser != '<YOUR USER>') {
hasPactsFromPactBroker("https://test.pact.dius.com.au", authentication: ['Basic', pactBrokerUser, pactBrokerPassword])
}
}
}
}
有人知道为什么会出现此错误吗 非常感谢!!!
答案 0 :(得分:0)
参见此处:https://github.com/DiUS/pact-jvm/issues/693
显然pact-jcm 3.5.19中已修复gradle 4.8支持