![](/img/trans.png)
[英]java.lang.IllegalArgumentException: Name for parameter binding must not be null or empty
[英]Gradle Upgrade issue: java.lang.IllegalArgumentException: Version must not be null o empty
我們在將 gradle 5.5 升級到 gradle 7.2 時遇到了問題。
此外,我們正在嘗試將 spring cloud 升級到需要 gradle 升級和 spring boot upgade 的最新版本。 當前版本如下所示
當我嘗試點擊 swagger url 時出現以下錯誤。
java.lang.IllegalArgumentException: Version must not be null o empty
Spring boot 橫幅是空白的,沒有顯示版本。 我們懷疑這可能是問題所在。
Swagger主頁顯示以下錯誤:
Failed to load API definition
請幫助我們理解這個問題。
添加了一些新功能以及從 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()
}
另外,通過一次以獲取更多詳細信息https://docs.gradle.org/current/userguide/upgrading_version_6.html
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.