[KOTLIN-SPRING] fix: use spring-cloud-dependencies BOM in Spring Boot 4 spring-cloud pom#24326
Open
zaenk wants to merge 1 commit into
Open
[KOTLIN-SPRING] fix: use spring-cloud-dependencies BOM in Spring Boot 4 spring-cloud pom#24326zaenk wants to merge 1 commit into
zaenk wants to merge 1 commit into
Conversation
Member
|
thanks for the PR i wonder if you can create a test config similar to https://github.com/OpenAPITools/openapi-generator/blob/master/bin/configs/kotlin-spring-cloud.yaml (and generate the samples twice, commit the new files) to catch the issue moving forward. |
Chrimle
approved these changes
Jul 19, 2026
Chrimle
left a comment
Contributor
There was a problem hiding this comment.
Awesome, thanks for the contribution! <3
For future reference; Here's the equivalent in JavaSpring, as described in the PR description.
zaenk
force-pushed
the
fix/kotlin-spring-cloud-pom-sb4-bom
branch
3 times, most recently
from
July 20, 2026 13:02
954c73c to
059740d
Compare
…4 spring-cloud pom The kotlin-spring spring-cloud pom-sb4 template imports spring-cloud-starter-parent 2025.1.0 as a BOM, but that artifact is not published on Maven Central for the 2025.1.x train (only milestones/RCs exist) — so generated projects fail to resolve dependencies. The importable BOM for this train is spring-cloud-dependencies, which is what the JavaSpring spring-cloud pom-sb4 template already uses. Align kotlin-spring with it. Fixes OpenAPITools#24325
zaenk
force-pushed
the
fix/kotlin-spring-cloud-pom-sb4-bom
branch
from
July 20, 2026 13:14
059740d to
3433c84
Compare
Contributor
Author
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #24325
The
kotlin-springspring-cloudpom-sb4.mustachetemplate importsspring-cloud-starter-parent:2025.1.0as a managed BOM. That artifact is not published on Maven Central for the 2025.1.x train (only-M*/-RC*exist), so projects generated withkotlin-spring+library: spring-cloud+useSpringBoot4=truefail dependency resolution at build time.The correct, published importable BOM for this train is
spring-cloud-dependencies(2025.1.0GA, HTTP 200). TheJavaSpringgenerator's equivalentspring-cloud/pom-sb4.mustachealready usesspring-cloud-dependencies— this PR alignskotlin-springwith it.Change: one line in
modules/openapi-generator/src/main/resources/kotlin-spring/libraries/spring-cloud/pom-sb4.mustache—
spring-cloud-starter-parent→spring-cloud-dependencies.Samples: no committed sample exercises this template path —
bin/configs/kotlin-spring-cloud.yamldoes not setuseSpringBoot4, and the onlyuseSpringBoot4kotlin-spring config (kotlin-spring-boot-4.yaml) useslibrary: spring-boot, notspring-cloud. Regenerating samples therefore produces no diff for this change.PR checklist
(No sample covers the kotlin-spring + spring-cloud + Spring Boot 4 path, so this produces no sample changes; template-only fix.)addedkotlin-spring-cloud-4sample@karismann (2019/03) @Zomzog (2019/04) @andrewemery (2019/10) @4brunu (2019/11) @yutaka0m (2020/03) @stefankoppier (2022/06) @e5l (2024/10)
Summary by cubic
Switch the Kotlin Spring
spring-cloudSpring Boot 4 pom to thespring-cloud-dependenciesBOM (2025.1.0) to fix dependency resolution and match the JavaSpring template. Adds a sample and config for thekotlin-spring+spring-cloud+useSpringBoot4=truepath to reproduce and validate.kotlin-spring/libraries/spring-cloud/pom-sb4.mustache, replacespring-cloud-starter-parentwithspring-cloud-dependencies.bin/configs/kotlin-spring-cloud-4.yamlandsamples/server/petstore/kotlin-spring-cloud-4(Gradle and Maven) to verify the BOM resolves.Written for commit 3433c84. Summary will update on new commits.