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
Update Gradle Wrapper to 8.2.1 for Enhanced JDK20 Compatibility
- **Reason for Upgrade**: The migration to JDK20 ([reference](https://github.com/opensearch-project/opensearch-build/blob/aa65a8ecd69f77c3d3104043dd1c48dff708bffa/manifests/3.0.0/opensearch-3.0.0.yml#L9)) rendered the current Gradle version (7.6.1) incompatible.
- **Actions Taken**:
- **Gradle Wrapper Update**: Upgraded the Gradle wrapper to version 8.2.1 to maintain compatibility with JDK20. The gradle wrapper files are generated using the `./gradlew wrapper` command.
- Applied `spotless` due to new formatting requirements in Gradle 8.
- Resolved test "jar hell" issues. Gradle 8 introduced internal JARs to the test classpath that conflicted with dependencies from `org.junit.vintage:junit-vintage-engine`. As a remedy, these conflicting JARs have been excluded.
- **Relevant Pull Requests**:
- [Alerting#893](https://github.com/opensearch-project/alerting/pull/893/files)
- [ML-Commons#892](opensearch-project/ml-commons#892)
- [Security PR](opensearch-project/security#2978)
- **Verification**: Successfully verified the changes using `gradle build`.
Signed-off-by: Kaituo Li <kaituo@amazon.com>
0 commit comments