[英]Gradle Upgrade issue: java.lang.IllegalArgumentException: Version must not be null o empty
we are facing issue while upgrading gradle 5.5 to gradle 7.2.我们在将 gradle 5.5 升级到 gradle 7.2 时遇到了问题。
Also we are trying to upgrade spring cloud to latest version which requires gradle upgrade and spring boot upgade.此外,我们正在尝试将 spring cloud 升级到需要 gradle 升级和 spring boot upgade 的最新版本。 current version is shown below
当前版本如下所示
Getting below error while I try hitting swagger url.当我尝试点击 swagger url 时出现以下错误。
java.lang.IllegalArgumentException: Version must not be null o empty
Spring boot banner is blank and not showing version. Spring boot 横幅是空白的,没有显示版本。 we are suspecting this could be the issue.
我们怀疑这可能是问题所在。
Swagger home page shows below error: Swagger主页显示以下错误:
Failed to load API definition
Please help us understand this issue.请帮助我们理解这个问题。
there are some new features added as well as some features from gradle5X removed so, please go through the documentation once again and try to add the below dependencies that may help you in your API.添加了一些新功能以及从 gradle5X 中删除了一些功能,因此,请再次阅读文档并尝试添加以下可能对您的 API 有所帮助的依赖项。
dependencies {
// Ensure you use the Groovy 3.x variant
testImplementation('org.spockframework:spock-core:2.0-groovy-3.0') {
exclude group: 'org.codehaus.groovy'
}
testImplementation('org.junit.jupiter:junit-jupiter-api')
} }
// Spock 2 is based on JUnit Platform and needs to be enabled explicitly.
tasks.withType(Test).configureEach {
useJUnitPlatform()
}
also, go through this once to get more in detailed https://docs.gradle.org/current/userguide/upgrading_version_6.html另外,通过一次以获取更多详细信息https://docs.gradle.org/current/userguide/upgrading_version_6.html
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.