You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current gradle-wrapper.properties file uses an outdated Gradle version that is not fully compatible with Java 21. This may cause build issues or prevent the project from compiling on systems using Java 21.
Proposed Solution:
Update the distributionUrl in gradle-wrapper.properties to a Gradle version that supports Java 21 (e.g., 8.4 or higher).
Old version, current version in code (that supports java 19 or lesser)
The current gradle-wrapper.properties file uses Gradle 8.2.1, which is not fully compatible with Java 21.
Gradle 8.2.1 supports up to Java 20, but Java 21 support was introduced in Gradle 8.4 and improved in later versions.
The proposed solution is to update the distributionUrl in gradle-wrapper.properties to a Gradle version that supports Java 21, specifically suggesting Gradle 8.5.
Why This Matters
Java 21 is a long-term support (LTS) version, and many developers may use it for modern projects.
Gradle 8.2.1 can compile code for Java 21 using toolchains, but running Gradle itself on Java 21 may cause issues due to compatibility limitations (e.g., Kotlin DSL or internal Gradle components may fail).
Updating to a compatible Gradle version ensures the build process is stable and supports Java 21 for both compilation and runtime.
Is your feature request related to a problem?
Description:
The current gradle-wrapper.properties file uses an outdated Gradle version that is not fully compatible with Java 21. This may cause build issues or prevent the project from compiling on systems using Java 21.
Proposed Solution:
Update the distributionUrl in gradle-wrapper.properties to a Gradle version that supports Java 21 (e.g., 8.4 or higher).
Old version, current version in code (that supports java 19 or lesser)
distributionUrl=https://services.gradle.org/distributions/gradle-8.2.1-all.zip
Version to update
distributionUrl=https://services.gradle.org/distributions/gradle-8.5-all.zip
Record
The text was updated successfully, but these errors were encountered: