Skip to content

chore(deps)!: upgrade to java 25 and needed deps#415

Merged
munterfi merged 8 commits intomainfrom
chore/cleanup-and-updates
Jan 4, 2026
Merged

chore(deps)!: upgrade to java 25 and needed deps#415
munterfi merged 8 commits intomainfrom
chore/cleanup-and-updates

Conversation

@munterfi
Copy link
Copy Markdown
Member

@munterfi munterfi commented Dec 27, 2025

This pull request upgrades the project to Java 25 and updates several dependencies and configurations to ensure compatibility. It also modernizes the integration test setup by switching to the new RestClient API and replaces the usage of JetBrains annotations with JSpecify. Below are the most important changes grouped by theme:

Java and Dependency Upgrades:

  • Upgraded the Java version from 21 to 25 throughout the project, including Docker images, Maven build files (pom.xml), and GitHub Actions workflows. This ensures the codebase is built and run using Java 25. [1] F122d1a5L7, [2] [3] [4] [5] [6] [7]
  • Updated Maven wrapper to use version 3.9.12 and changed the distribution URL and type for improved build reproducibility.
  • Upgraded key dependencies: Spring Boot from 3.5.7 to 4.0.1 and springdoc-openapi-starter-webmvc-ui from 2.8.14 to 3.0.0. [1] [2]

Annotation and API Modernization:

  • Replaced all usages of org.jetbrains.annotations.Nullable with org.jspecify.annotations.Nullable for nullability annotations across the codebase. [1] [2] [3] [4] [5] [6] [7]

Integration Test Improvements:

  • Migrated integration tests from using TestRestTemplate to the new RestClient API, including adding a test configuration (TestRestClientConfig) and updating TestRestRequest to use RestClient. This provides better flexibility and future-proofs test HTTP client usage. [1] [2] [3] [4]

Build and Compilation Enhancements:

  • Added Lombok as an annotation processor in the Maven build configuration to support code generation during compilation.

Minor Code and Formatting Updates:

  • Made main methods package-private (removed public) in entry-point classes, which is a minor visibility adjustment. [1] [2]
  • Minor formatting changes in pom.xml files for consistency. [1] [2] [3] [4]

These updates ensure the project is aligned with the latest Java and Spring ecosystem standards and improve test maintainability and code clarity.

dependabot bot and others added 7 commits December 27, 2025 07:56
Bumps [org.springdoc:springdoc-openapi-starter-webmvc-ui](https://github.com/springdoc/springdoc-openapi) from 2.8.13 to 3.0.0.
- [Release notes](https://github.com/springdoc/springdoc-openapi/releases)
- [Changelog](https://github.com/springdoc/springdoc-openapi/blob/main/CHANGELOG.md)
- [Commits](springdoc/springdoc-openapi@v2.8.13...v3.0.0)

---
updated-dependencies:
- dependency-name: org.springdoc:springdoc-openapi-starter-webmvc-ui
  dependency-version: 3.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
- Bump Spring Boot version to 4.0.1
- Update Lombok to 1.18.42 and configure annotation processor
- Refactor TestRestRequest to use the newer RestClient API
- Delete unused gtfs.zip file
- Upgrade Docker image build to Java 25.
- Bump Maven compiler source and target to 25 across all modules
- Upgrade maven version
- Replace `jetbrains-annotations` dependency with `jspecify` 1.0.0
- Migrate usages of `@org.jetbrains.annotations.Nullable` to `@org.jspecify.annotations.Nullable`
- Migrate usages of `@org.jetbrains.annotations.NotNull` to `@org.jspecify.annotations.NonNull`
@munterfi munterfi changed the title Chore/cleanup and updates chore: upgrade to java 25 and needed deps Dec 27, 2025
@munterfi munterfi requested a review from clukas1 December 29, 2025 16:51
@munterfi munterfi changed the title chore: upgrade to java 25 and needed deps chore(deps)!: upgrade to java 25 and needed deps Dec 29, 2025
@munterfi munterfi merged commit dba9711 into main Jan 4, 2026
2 checks passed
@munterfi munterfi deleted the chore/cleanup-and-updates branch January 4, 2026 19:54
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