Skip to content

build: Use wire-runtime-jvm 6.3.0 in all profiles (5.x.x) - #1424

Open
ZPascal wants to merge 1 commit into
cloudfoundry:5.x.xfrom
ZPascal:wire-runtime-6.3.0-5.x.x
Open

ZPascal wants to merge 1 commit into
cloudfoundry:5.x.xfrom
ZPascal:wire-runtime-6.3.0-5.x.x

Conversation

@ZPascal

@ZPascal ZPascal commented Nov 27, 2026

Copy link
Copy Markdown
Contributor

Fixes GHSA-pwf9-q62p-v7wc (Wire: uncontrolled recursion on nested groups, fixed in 5.2.0) on 5.x.x. This was split out of #1423.

Why

The published 5.x.x artifacts are built with the default Java 8 profile, which still used wire-runtime 3.7.1. Only the JDK 17/21 profiles, which only run in CI, used a newer wire-runtime-jvm. The Dependabot alert shows as fixed only because Dependabot scans main.

Changes

  • wire-runtime-jvm 6.3.0 in all profiles: 6.3.0 and its okio-jvm 3.17.0 are compiled for Java 8, so the default profile can use it too. The per-profile Wire overrides and the wire.suffix switch are removed, so CI and the published artifacts use the same Wire version.
  • kotlin-bom 2.0.21: Wire needs a Kotlin 2 stdlib, but Spring Boot 2.7's BOM would pin kotlin-stdlib to 1.6.21. It's imported before spring-boot-dependencies, so its version wins.

Testing

  • Default profile (JDK 11, target 1.8): cloudfoundry-client, -util, -reactor and -operations build, and their unit tests pass. The resolved dependencies are wire-runtime-jvm 6.3.0, okio-jvm 3.17.0 and kotlin-stdlib 2.0.21.
  • jdk-21 profile: cloudfoundry-client and -reactor build, and their unit tests pass.

The default Java 8 profile still shipped wire-runtime 3.7.1, which is
affected by GHSA-pwf9-q62p-v7wc (uncontrolled recursion on nested
groups, fixed in 5.2.0). Since the published 5.x.x artifacts are built
with that profile, the fix has to land there, not only in the JDK 17/21
profiles used in CI.

wire-runtime-jvm 6.3.0 (and its okio-jvm 3.17.0) is compiled for Java 8,
so every profile now uses the same Wire version and the per-profile
wire overrides and the wire.suffix switch are gone.

Wire needs a Kotlin 2 stdlib, but Spring Boot 2.7's BOM pins
kotlin-stdlib to 1.6.21. kotlin-bom 2.0.21 is imported ahead of
spring-boot-dependencies so its version wins.

@Kehrlann Kehrlann left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, that's better. Can you please research a bit Jackson 2.x compatiblity with Kotlin 2.x ?

In general we don't really need boot dependencies, IIRC we only Boot dependencies for:

  1. jackson (which you replaced with the jackson bom in #1423)
  2. Reactor imported deps
  3. Spring Framework for some utils (I think URL utils?)
  4. Testing libs
  5. Integration test apps

We could drop the boot dependency management entirely in main, and just pin deps ourselves.

This branch has not been deployed

No deployments
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.

2 participants