Repository navigation
feat: add spring-boot4 petstore sample, tests and CI workflow - #12791
Open
daniel-kmiecik wants to merge 1 commit into
Open
daniel-kmiecik wants to merge 1 commit into
daniel-kmiecik wants to merge 1 commit into
Conversation
daniel-kmiecik
force-pushed
the
handle-spring-boot-4-workflow
branch
from
November 24, 2026 12:46
4d4a134 to
0061dfe
Compare
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.
PR checklist
./bin/to update Petstore sample so that CIs can verify the change. (For instance, only need to run./bin/{LANG}-petstore.shand./bin/security/{LANG}-petstore.shif updating the {LANG} (e.g. php, ruby, python, etc) code generator or {LANG} client's mustache templates). Windows batch files can be found in.\bin\windows\.3.0.0branch for changes related to OpenAPI spec 3.0. Default:master.Description of the PR
Summary
Adds a petstore sample for the Spring Boot 4 / Jackson 3 server, generated with the
spring-boot4library from generators. Also adds the bin script that regenerates it, JUnit 5 custom tests, and a CI workflow that builds the sample on JDK 17 and 21.Depends on the generators PR that adds the
spring-boot4library. This PR is not expected to build until that generators version is released and this pom points to it .What changed
samples/server/petstore/springboot-4/: generated with--library spring-boot4from the petstore spec. Includespom.xml(Spring Boot 4.1.3,maven.compiler.release21), API interfaces with default methods, thin controllers, models and configuration.bin/springboot4-petstore-server.sh: regenerates the sample from the same spec, in the same style as the existing Spring scripts.samples/custom-tests/spring/v3/springboot4/: JUnit 5 tests forPetApi,StoreApiandUserApi. They autowire the generated interfaces and usepetstore-with-issue-cases.yaml, the same spec as the CI job..github/workflows/test-framework-v3-springboot4.yml:workflow_dispatchonly. Builds the codegen CLI, generates the sample with--library spring-boot4, copies the custom tests in and builds the sample on JDK 17 and 21. Uploads outcomes and logs per JDK.pom.xmlandpom.docker.xml: the javadoc report config usesreportSetswith theaggregatereport instead of theaggregateconfiguration, and drops thejavadoc.package.excludereference. Fixes the IDE validation errors on these poms.Testing
Dependencies
pom.xmlusesswagger-codegen-generators1.0.63. This must be a version that contains thespring-boot4library. Merge the generators PR and release first, then point this pom at that version.1.0.63-SNAPSHOTbuild of generators that includes thespring-boot4library. Regenerating it with the released version should give the same output.Not verified yet
workflow_dispatchonly, so it has to be started manually on the3.0.0branch after merge.