gpt4 book ai didi

gradle - 升级到gradle 4.8后,gradle pact不起作用

转载 作者:行者123 更新时间:2023-12-03 05:41:46 25 4
gpt4 key购买 nike

升级到Gradle 4.8后出现以下错误

Synchronize Gradle projects with workspace failed due to an error in the referenced Gradle build.
Could not run build action using Gradle distribution 'https://services.gradle.org/distributions/gradle-4.8-bin.zip'.

A problem occurred configuring root project 'wag-doc-text2clip'.
**No signature of method: org.gradle.util.NameValidator.asValidName() is applicable for argument types: (org.codehaus.groovy.runtime.GStringImpl) values: [pactVerify_text2clip]**
**org.gradle.tooling.BuildException: Could not run build action using Gradle distribution 'https://services.gradle.org/distributions/gradle-4.8-bin.zip'.**
at org.gradle.tooling.internal.consumer.ExceptionTransformer.transform(ExceptionTransformer.java:51)
Caused by: org.gradle.api.ProjectConfigurationException: A problem occurred configuring root project 'wag-doc-text2clip'.
at org.gradle.configuration.project.LifecycleProjectEvaluator.addConfigurationFailure(LifecycleProjectEvaluator.java:109)
at
Caused by: groovy.lang.MissingMethodException: No signature of method: org.gradle.util.NameValidator.asValidName() is applicable for argument types: (org.codehaus.groovy.runtime.GStringImpl) values: [pactVerify_text2clip]
at au.com.dius.pact.provider.gradle.PactPlugin$_apply_closure1$_closure3$_closure4.doCall(PactPlugin.groovy:47)
at

有人能帮助我吗。

最佳答案

通过升级pact插件解决了此问题。

id "au.com.dius.pact" version "3.6.0-rc.0"

classpath "gradle.plugin.au.com.dius:pact-jvm-provider-gradle_2.12:3.6.0-rc.0"

关于gradle - 升级到gradle 4.8后,gradle pact不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52510400/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com