chore: upgrade to Gradle 9 and Spring Boot 4

Open
#2,258 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Refactor
Clarity
Mostly clear
Activity status
Active
Tech stack
java, spring-boot

Research direction

Start by reviewing the Spring Boot configuration in web/service and the Gradle wrapper and plugin versions, using #2220 and #2257 for context. Run ./gradlew build --warning-mode all to establish the current warnings. Done means the build reports no Gradle deprecation warnings, CI has no outdated-version notice, and the web service, CLI jar, installers, and Javadoc build and pass tests.

Written by the indexing model from the issue text.

Description

Describe the problem

After #2257 the build runs on Gradle 8.14.3, the last 8.x release. CI still shows:

  • A notice on every Gradle job: "Gradle 8.14.3 is out of date" (current release is 9.9.1).
  • Deprecation warnings for APIs removed in Gradle 9.0, all raised by the Spring Boot 2.7.5 Gradle plugin in web/service.

Gradle 9 cannot be adopted while the web service is on Spring Boot 2.7, because its plugin uses APIs that Gradle 9 removes.

Proposed solution
  1. Migrate web/service from Spring Boot 2.7.5 to 4.x (javax.* to jakarta.*, plus spring-cloud-gcp and sentry upgrades). Going through 3.5 first may be easier.
  2. Upgrade the Gradle wrapper to the latest 9.x.
  3. Upgrade the plugins that need a Gradle 9-compatible release: io.freefair.*, com.gradleup.shadow, org.beryx.jlink, extra-java-module-info, spotless, axion-release.

Done when: ./gradlew build --warning-mode all reports no Gradle deprecation warnings, CI shows no "out of date" notice, and the web service, CLI jar, installers and Javadoc still build and pass tests.

Alternatives you've considered

Stay on Gradle 8.14.3 and Spring Boot 2.7: nothing breaks immediately, but the notice and warnings remain. Upgrading Gradle alone is not possible.

Additional context

Follow-up to #2220 and #2257.

Dominant language
Java
Stars
426
Forks
127
Avg merge
2d 10h
Merged PRs (30d)
27

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from MobilityData/gtfs-validator

All issues in MobilityData/gtfs-validator

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.