chore: upgrade to Gradle 9 and Spring Boot 4
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
- Domain
- backend, build-system
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
- Migrate
web/servicefrom Spring Boot 2.7.5 to 4.x (javax.*tojakarta.*, plusspring-cloud-gcpandsentryupgrades). Going through 3.5 first may be easier. - Upgrade the Gradle wrapper to the latest 9.x.
- 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
- Ships a Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from MobilityData/gtfs-validator
-
Update csvRowNumber consistently across noticesPossibly taken @JooaoGui claimed this 5 days ago. Openstatus: Ready
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
MobilityData/gtfs-validator#2254 · 2 comments · 1 reaction ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 76/100
MobilityData/gtfs-validator#2199 · 1 comment · 1 reaction ·
Maintainers usually reply within 1 day
-
new rule
Difficulty 3/5 1-2 days Newbie friendliness 58/100
MobilityData/gtfs-validator#2268 · 1 reaction ·
Maintainers usually reply within 1 day
-
Difficulty 3/5 1-2 days Newbie friendliness 68/100
MobilityData/gtfs-validator#2262 · 1 comment ·
Maintainers usually reply within 1 day
-
enhancement new rule status: Blocked
Difficulty 5/5 Over a week Newbie friendliness 42/100
MobilityData/gtfs-validator#2239 ·
Maintainers usually reply within 1 day
All issues in MobilityData/gtfs-validator
Similar issues
-
0. Needs triage enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 1 day
-
good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
davidfercas/opendcanard#34 ·
-
good first issue help wanted
Difficulty 1/5 Under an hour Newbie friendliness 90/100
erkamyaman/rust-anything#702 ·
Maintainers usually reply within 1 day
-
beginner build dependencies difficulty: easy good first issue hacktoberfest help wanted size/S testing up-for-grabs
Difficulty 1/5 Under an hour Newbie friendliness 94/100
-
Update CHANGELOG.mdOpen
Difficulty 1/5 Under an hour Newbie friendliness 84/100
OpenConext/OpenConext-oidcng#373 ·