Skip to content

build: upgrade to Gradle 9.9.2 - #2053

Merged
lagergren merged 2 commits into
redhat-developer:mainfrom
lagergren:build/gradle-9.9.2
Nov 21, 2026
Merged

lagergren merged 2 commits into
redhat-developer:mainfrom
lagergren:build/gradle-9.9.2

Conversation

@lagergren

@lagergren lagergren commented Nov 21, 2026 •

Copy link
Copy Markdown
Collaborator

Upgrades Gradle from 9.8.1 to 9.9.2, its latest release (2026-11-19).

./gradlew wrapper, run twice as Gradle recommends, set the distribution URL in gradle-wrapper.properties and updated gradle-wrapper.jar, whose SHA-256, 621008af…cdaf8, is the one that services.gradle.org gives for gradle-9.9.2-wrapper.jar. gradleVersion in gradle.properties, which the wrapper task reads, is 9.9.2 too. gradlew and gradlew.bat are unchanged.

The wrapper also tries a failed download of the distribution three more times, after 1, 2 and 4 seconds, instead of giving up at once (retries was 0). The wrapper task sets it, as it sets the network timeout since #1917, so that ./gradlew wrapper keeps it.

With Gradle 9.9.2, the build gives one new deprecation warning, which LSP4IJ's build can't fix:

  • Task.getAnt(), to be removed in Gradle 10: the instrumentCode task of the IntelliJ Platform Gradle Plugin calls it (InstrumentCodeTask.prepareAntClassLoader), in 2.20.0 and still on the plugin's main. The only way around it here would be to turn off code instrumentation, which would take the runtime @NotNull checks out of the plugin: LSP4IJ has no GUI forms, so those checks are all that instrumentation adds.

The other warning, Configuration.setVisible(boolean), to be removed in Gradle 11, already shows with 9.8.1: Kover 0.9.11, its latest release, calls it. Kover fixed it in Kotlin/kotlinx-kover#838, which isn't released yet.

The first run of Build Plugin zip failed on a 403 Forbidden of Maven Central for kotlin-stdlib-2.4.21.pom, which Gradle 9.9.2 resolves for the build script and which the Gradle cache of CI, made with 9.8.1, doesn't hold yet. The other jobs downloaded it, and the rerun passed. Gradle tries a dependency download again on a timeout or an error 5xx or 429, not on a 403. Once this is merged, the cache that main writes holds it.

Test: the configuration cache is stored and then reused, buildPlugin builds the plugin, and all tests pass (1772, 7 skipped).

./gradlew wrapper, run twice, set the distribution URL and updated the
wrapper JAR, whose SHA-256 is the one that services.gradle.org gives for
gradle-9.9.2-wrapper.jar.
@lagergren lagergren added this to the 0.30.2 milestone Nov 21, 2026
@coderabbitai

coderabbitai Bot commented Nov 21, 2026 •

Copy link
Copy Markdown

No actionable comments were generated in the recent review.

Summary

Summary by CodeRabbit

  • Chores
    • Updated the Gradle version to 9.9.2.
    • Added retries for Gradle distribution downloads, with increasing delays between attempts.

The configured Gradle version changed from 9.8.1 to 9.9.2. The wrapper now retries distribution downloads three times with a 1,000 ms initial backoff.

Changes: Gradle Wrapper Configuration

Layer / File(s) Summary
Gradle version and download retries
gradle.properties, gradle/wrapper/gradle-wrapper.properties, build.gradle.kts
The configured Gradle version changed to 9.9.2. The wrapper now retries downloads three times with a 1,000 ms initial backoff. The 60,000 ms network timeout remains unchanged.

Estimated code review effort: 1 (Trivial) | ~4 minutes

Change: Other

Suggested reviewers: angelozerr

Merge Risk: Minimal · up to 6bfa7

This updates the build tooling to Gradle 9.9.2 and makes wrapper downloads retry on failure. It does not change runtime behavior, and no merge-blocking risk is evident.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title 'build: upgrade to Gradle 9.9.2' states the main change: the Gradle version upgrade from 9.8.1 to 9.9.2. The changeset updates gradle.properties, gradle-wrapper.properties, and the wrapper J…
Description check Passed The description states the Gradle upgrade from 9.8.1 to 9.9.2 and explains the wrapper JAR update, the gradleVersion change, the download retry settings, the new deprecation warnings, and the CI cache…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title 'build: upgrade to Gradle 9.9.2' states the main change: the Gradle version upgrade from 9.8.1 to 9.9.2. The changeset updates gradle.properties, gradle-wrapper.properties, and the wrapper JAR to this version, and adds retry settings. The title is specific and concise, and it matches the primary intent.

Full details: Description check

Explanation

The description states the Gradle upgrade from 9.8.1 to 9.9.2 and explains the wrapper JAR update, the gradleVersion change, the download retry settings, the new deprecation warnings, and the CI cache issue. It relates directly to the changeset.

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 184a45a8-6339-4799-854f-29e2b3b3344a
Commits

Reviewing files that changed from the base of the PR and between b982bd4 and 6bfa769.

Files ignored due to path filters: 1

  • gradle/wrapper/gradle-wrapper.jar is excluded by !**/*.jar
Files selected for processing: 3

  • build.gradle.kts
  • gradle.properties
  • gradle/wrapper/gradle-wrapper.properties

Included review availability: This review used your included allowance. Your plan provides up to 2 included reviews per hour; 0 remain after this review.

@codecov

codecov Bot commented Nov 21, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 49.49%. Comparing base (e92baaa) to head (6bfa769).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2053      +/-   ##
==========================================
+ Coverage   49.47%   49.49%   +0.01%     
==========================================
  Files         813      813              
  Lines       33343    33350       +7     
  Branches     6854     5195    -1659     
==========================================
+ Hits        16498    16507       +9     
- Misses      14267    14268       +1     
+ Partials     2578     2575       -3     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

…ion three more times

The wrapper gave up after one failed download of the Gradle distribution
(retries=0). It now tries three more times, after 1, 2 and 4 seconds. The
wrapper task sets it, so that ./gradlew wrapper keeps it.
@lagergren

Copy link
Copy Markdown
Collaborator Author

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Nov 21, 2026 •

Copy link
Copy Markdown
Action performed

Review finished.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@lagergren
lagergren merged commit 948c2e9 into redhat-developer:main Nov 21, 2026
9 of 10 checks passed
lagergren added a commit that referenced this pull request Nov 21, 2026
…it for an edit of the description (#2067)

Fixes #2066.

The *Conventional Commits PR Check* ran for every edit of a pull request, its description included, and since #1973 a newer run cancelled the one in progress. A push followed within seconds by an edit of the description left a cancelled run of `main` on the commit, which GitHub counts as a failed check: the pull request showed a red cross and the merge state `UNSTABLE`, while the other run of the same check passed (#2049, #2053, #2052).

- The workflow has no concurrency group any more, so no run is cancelled. `cancel-in-progress: false` would not be enough: a run that waits in the group is still cancelled when a newer one joins it. The check takes a few seconds.
- The job is skipped for an edit that doesn't change the title (`github.event.changes.title`). A skipped run doesn't count as a failure.

Pushes and title edits run the check as before. The other workflows keep the cancellation of #1973, where it saves runners.

Test: `actionlint` passes. This pull request runs the changed workflow: the check ran and passed when it was opened, and this edit of its description, which changes no title, skips it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant