Skip to content

Upgrade to Gradle 8.14 and prepare the build for Gradle 9 - #1802

Open
avazirna wants to merge 7 commits into
masterfrom
bump-gradle-to-8.14
Open

avazirna wants to merge 7 commits into
masterfrom
bump-gradle-to-8.14

Conversation

@avazirna

@avazirna avazirna commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

Technical Summary

Bumps the Gradle wrapper to 8.14.6 and clears the deprecation warnings it reports for the root build.gradle, so the build is ready for Gradle 9.

  • Removed in Gradle 9: top-level sourceCompatibility/targetCompatibility now live in a java { } block. CreateSnapshotDbs sets testClassesDirs/classpath explicitly, because Gradle 9 stops filling them in for custom Test tasks. The values are the same ones Gradle used before.
  • Other deprecations:
    • Tasks are created with tasks.register.
    • buildDir is replaced by layout.buildDirectory.
    • Groovy property assignments use =.
    • Kotlin's jvmTarget moves from kotlinOptions, which has been deprecated since Kotlin 2.0, to compilerOptions.
  • Kotlin 2.2 warning in MediaHandler: its logger was created from javaClass inside the companion object, so it logged as MediaHandler$Companion. It now logs as MediaHandler.
  • .kotlin/, Kotlin 2.x's local data folder, is now gitignored.

The commits are split by purpose and can be reviewed one at a time.

Safety Assurance

Safety story

  • Gradle reports no deprecation warnings for the root build.gradle (checked with --warning-mode all).
  • Each commit configures on its own: a dry run of test, CreateSnapshotDbs and assemble succeeds at every step.
  • compileKotlin, compileTestKotlin and compileTestJava succeed. Compiled Kotlin (main and test) is still Java 17 bytecode (major version 61), the same as with kotlinOptions.
  • It was confirmed that CreateSnapshotDbs resolves to the same test class folders and classpath as before.
  • Existing CI build and test suite ran successfully.

QA Plan

No QA needed; build-only change apart from the logger name.

Special deploy instructions

  • This PR can be deployed after merge with no further considerations.

Rollback instructions

  • This PR can be reverted after deploy with no further considerations.

Review

  • The set of people pinged as reviewers is appropriate for the level of risk of the change.

🤖 Generated with Claude Code

avazirna and others added 7 commits November 19, 2026 15:18
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Top-level sourceCompatibility goes through JavaPluginConvention, and
custom Test tasks lose their default testClassesDirs/classpath in 9.0.
CreateSnapshotDbs gets the same values Gradle was filling in, so
behaviour is unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
buildDir has been deprecated since Gradle 8.3.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The space-assignment syntax is deprecated in Gradle 8.14 and will be
removed in Gradle 10.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
kotlinOptions has been deprecated since Kotlin 2.0.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
javaClass inside a companion object resolves to MediaHandler$Companion,
which Kotlin 2.2 now warns about.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@codecov

codecov Bot commented Nov 19, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 72.54%. Comparing base (c083486) to head (44ac0b6).

Additional details and impacted files
@@            Coverage Diff            @@
##             master    #1802   +/-   ##
=========================================
  Coverage     72.54%   72.54%           
  Complexity     2174     2174           
=========================================
  Files           264      264           
  Lines          8206     8206           
  Branches        799      799           
=========================================
  Hits           5953     5953           
  Misses         1966     1966           
  Partials        287      287           

☔ 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.

@avazirna avazirna mentioned this pull request Nov 19, 2026
2 of 3 tasks
@avazirna
avazirna marked this pull request as ready for review November 23, 2026 13:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant