Skip to content

build: Import kotlin-bom so Wire gets a Kotlin 2 stdlib - #1425

Merged
ZPascal merged 1 commit into
cloudfoundry:mainfrom
ZPascal:kotlin-bom-main
Dec 2, 2026
Merged

ZPascal merged 1 commit into
cloudfoundry:mainfrom
ZPascal:kotlin-bom-main

Conversation

@ZPascal

@ZPascal ZPascal commented Nov 30, 2026

Copy link
Copy Markdown
Contributor

This is the first step from the discussion in #1424.

Wire 6.3.0 is on main now, but Spring Boot 3.2.1 pins kotlin-stdlib to 1.9.21 while Wire and okio are built against 2.0.21. This imports kotlin-bom 2.0.21 before the Boot BOM, the same way we already do it for jackson-bom, so the right stdlib is used.

I also removed junit-jupiter.version, mockito.version and snakeyaml.version from the root pom. Nothing uses them, so Boot decides those versions anyway (we actually get JUnit 5.10.1, Mockito 5.7.0 and SnakeYAML 2.2). Keeping them around just makes it look like they are pinned. They'll come back properly when we replace the Boot BOM in a follow-up PR.

Tested locally: client, util, reactor and operations build and all unit tests pass, and kotlin-stdlib now resolves to 2.0.21 everywhere.

wire-runtime-jvm 6.3.0 and okio-jvm 3.17.0 are built against
kotlin-stdlib 2.0.21, but Spring Boot 3.2.1 pins it to 1.9.21.
Import kotlin-bom 2.0.21 before spring-boot-dependencies so its
version wins, the same way jackson-bom is handled.

Also drop the junit-jupiter.version, mockito.version and
snakeyaml.version properties. Nothing references them, so the
versions actually used come from Spring Boot and the properties
only make it look like they are pinned.
@ZPascal
ZPascal merged commit 482ac9d into cloudfoundry:main Dec 2, 2026
4 checks passed
@ZPascal
ZPascal deleted the kotlin-bom-main branch December 2, 2026 17:50
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