Skip to content

Consolidate Kotlin dependencies to a single managed version#37238

Merged
arnej27959 merged 2 commits into
masterfrom
arnej/consolidate-kotlin
Jun 18, 2026
Merged

Consolidate Kotlin dependencies to a single managed version#37238
arnej27959 merged 2 commits into
masterfrom
arnej/consolidate-kotlin

Conversation

@arnej27959

Copy link
Copy Markdown
Member

Adding openai-java pulled in jackson-module-kotlin, which depends on kotlin-reflect 2.1.21, so the build ended up with several Kotlin versions (1.8.0, 1.9.25 and 2.1.21) on the dependency tree and in the enforcer allowlist.

Bump kotlin.vespa.version to 2.1.21 so all Kotlin artifacts are managed at one version. The exception is kotlin-stdlib-common, which is not published for major version 2, so keep it at 1.9.25 via a separate kotlin-stdlib-common.vespa.version property.

Also add dependency management for the openai-java transitive Kotlin artifacts in hosted-tenant-base, and prune the now-redundant Kotlin version entries from the dependency enforcer allowlist.

Adding openai-java pulled in jackson-module-kotlin, which depends on
kotlin-reflect 2.1.21, so the build ended up with several Kotlin
versions (1.8.0, 1.9.25 and 2.1.21) on the dependency tree and in the
enforcer allowlist.

Bump kotlin.vespa.version to 2.1.21 so all Kotlin artifacts are managed
at one version. The exception is kotlin-stdlib-common, which is not
published for major version 2, so keep it at 1.9.25 via a separate
kotlin-stdlib-common.vespa.version property.

Also add dependency management for the openai-java transitive Kotlin
artifacts in hosted-tenant-base, and prune the now-redundant Kotlin
version entries from the dependency enforcer allowlist.

@hmusum hmusum left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Nice

@thomasht86 thomasht86 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.

👍

@arnej27959 arnej27959 merged commit 6ee84f9 into master Jun 18, 2026
3 checks passed
@arnej27959 arnej27959 deleted the arnej/consolidate-kotlin branch June 18, 2026 06:00
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.

3 participants