Skip to content

0.2.1

Choose a tag to compare

@davidmoten davidmoten released this 28 Jun 01:31
· 68 commits to master since this release

Full Spring Boot 3 support (server side) [BREAKING CHANGE]

There was a simple blocker for Spring Boot 3 server generation, being a change to the signature (return type) of ResponseEntity.getStatusCode() between Spring 5 and Spring 6.

No changes to use of generated server-side code expected, this is mostly about dependency changes.

Changes include:

  • replace artifact openapi-codegen-spring-boot-runtime with Spring Boot version-specific artifacts:
    • openapi-codegen-spring-boot-2-runtime
    • openapi-codegen-spring-boot-3-runtime
  • addition of a new module openapi-codegen-spring-boot-core holding shared classes (is depended on by the above two dependencies so you don't need to explicitly add it)
  • migrate from slf4j 1.x to 2.x (no apparent problem running Spring Boot 2 test server)
  • copy all Spring Boot 2 tests and update for Spring Boot 3 (particularly to use jakarta.servlet-api and multipart support changes).
  • add springBoot2 and springBoot3 to accepted generatorTypes in the configuration of openapi-codegen-maven-plugin and deprecated spring2, spring3 (they still work as aliases for springBoot2 and springBoot3)
  • trim dependencies (for example javax.annotation only required for Spring Boot 2, and jackson deps were available transitively)
  • ensure just junit 5 used (there were a couple of junit 4 references)
  • remove unused junit-extras dependency
  • update openapi-codegen-pet-store-example project to use Spring Boot 3 (check that out to confirm the appropriate project setup for yourself)

There is only one breaking change for client generation being the move from slf4j 1.x to 2.x.

What's else has changed

  • Bump io.swagger.parser.v3:swagger-parser from 2.1.29 to 2.1.30 by @dependabot in #317
  • Bump io.swagger.codegen.v3:swagger-codegen-maven-plugin from 3.0.68 to 3.0.69 by @dependabot in #318
  • Bump io.swagger.core.v3:swagger-annotations from 2.2.33 to 2.2.34 by @dependabot in #319
  • Bump org.junit.jupiter:junit-jupiter from 5.13.1 to 5.13.2 by @dependabot in #321
  • Bump org.openapitools:openapi-generator-maven-plugin from 7.13.0 to 7.14.0 by @dependabot in #322
  • Bump org.apache.maven.plugins:maven-pmd-plugin from 3.26.0 to 3.27.0 by @dependabot in #324
  • fix javavdoc plugins for mixed 8 and 17 by @davidmoten in #325

Full Changelog: 0.1.29...0.2.1