Update Gradle to 9.4.1 and Jacoco to 0.8.14 - #4811
Conversation
OpenSearch build-tools' GlobalBuildInfoPlugin now requires Gradle 9.4.1+, causing every CI run (including main) to fail during project evaluation with "Gradle 9.4.1+ is required". Mirrors opensearch-project/OpenSearch#21153. Signed-off-by: rithin-pullela-aws <rithinp@amazon.com>
PR Code Analyzer ❗AI-powered 'Code-Diff-Analyzer' found issues on commit 5a6efea.
The table above displays the top 10 most important findings. Pull Requests Author(s): Please update your Pull Request according to the report above. Repository Maintainer(s): You can Thanks. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #4811 +/- ##
=========================================
Coverage 77.42% 77.42%
Complexity 11907 11907
=========================================
Files 963 963
Lines 53326 53326
Branches 6503 6503
=========================================
+ Hits 41285 41289 +4
+ Misses 9289 9288 -1
+ Partials 2752 2749 -3
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Description
Bumps the Gradle wrapper from 9.2.0 → 9.4.1 and the Jacoco tool version from 0.8.13 → 0.8.14. This mirrors the change already landed in OpenSearch core: opensearch-project/OpenSearch#21153 (merged 2026-04-07).
Why
OpenSearch's
build-toolsGlobalBuildInfoPluginnow requires Gradle 9.4.1+. Since ml-commons still pins the wrapper to 9.2.0, every CI run — including pushes tomain— fails during project evaluation with:Failing CI examples
mainBuild and Test (commit20889dc2a): runs/25350445058 — same failure, not PR-specific.mainruns have been red for the same reason.Precedence
OpenSearch core hit and fixed this exact issue one month ago in opensearch-project/OpenSearch#21153:
build.gradle(where thejacoco.toolVersionlives) instead of core'sgradle/code-coverage.gradle.Sibling plugin repos (
neural-search,k-NN) are still on 9.2.0 and will need the same bump.Changes
gradle/wrapper/gradle-wrapper.properties:gradle-9.2.0-all.zip→gradle-9.4.1-all.zip(+ updated SHA-256; line ordering matched to core).build.gradle:jacoco.toolVersion = '0.8.13'→'0.8.14'.Test plan
./gradlew spotlessChecklocally with the updated wrapper — BUILD SUCCESSFUL across all 7 modules.Issues resolved
Unblocks all failing CI runs on
mainand on open PRs caused by the Gradle version requirement.By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.