Skip to content

Commit

Permalink
refactor: java版本检查,错误异常信息调整
Browse files Browse the repository at this point in the history
  • Loading branch information
livk-cloud committed May 16, 2024
1 parent a56d329 commit 8282e71
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion buildSrc/settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ dependencyResolutionManagement {

gradle.settingsEvaluated {
if (JavaVersion.current() < JavaVersion.VERSION_21) {
throw GradleException("This build requires JDK 21. It's currently ${JavaVersion.current()}. You can ignore this check by passing '-Dorg.gradle.ignoreBuildJavaVersionCheck'.")
throw GradleException("This build requires JDK 21. It's currently ${JavaVersion.current()}.")
}
}
2 changes: 1 addition & 1 deletion settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,6 @@ fileTree(rootDir) {

gradle.settingsEvaluated {
if (JavaVersion.current() < JavaVersion.VERSION_21) {
throw GradleException("This build requires JDK 21. It's currently ${JavaVersion.current()}. You can ignore this check by passing '-Dorg.gradle.ignoreBuildJavaVersionCheck'.")
throw GradleException("This build requires JDK 21. It's currently ${JavaVersion.current()}.")
}
}

0 comments on commit 8282e71

Please sign in to comment.