Skip to content

[Announcement] Build projects based on JDK17 #22175

Open

Description

@wing328

We will build this project based on JDK17 as part of the upcoming major release v8.0.0.

Output from generators (e.g. Java client) is not impacted by this change, which means if the output (e.g. Java clients) defaults to JDK11 (even though it has reached EOL), it will continue to do so.

Activity

  1. added
    Announcement
    on Oct 18, 2025
  2. Radenixlol commented on Oct 19, 2025

    @Radenixlol

    Are there plans in the future to implement an option for generated code to be done in records?

  3. wing328 commented on Oct 20, 2025

    @wing328
    MemberAuthor

    You mean an option like javaVersion to set the Java version in the auto-generated code?

  4. Radenixlol commented on Oct 20, 2025

    @Radenixlol

    Not really, I was referring to the Java structures that they added in Java 14, the records, instead of code generated using the typical classes, which would be generated with the records

  5. wing328 commented on Oct 20, 2025

    @wing328
    MemberAuthor

    Ah ok. No plan from core team to add such feature in the auto-generated Java code at the moment.

    Of course we welcome contributions from the community to contribute such feature/option.

  6. Radenixlol commented on Oct 20, 2025

    @Radenixlol

    Okay, I understand.

    I don't have the skills to contribute to a project of this nature. If I have them in the future, I could contribute. Thank you very much for the response.

  7. jpfinne commented on Oct 24, 2025

    @jpfinne
    Contributor

    @Radenixlol records seems nice... until you need inheritance and builders

  8. Radenixlol commented on Oct 24, 2025

    @Radenixlol

    @jpfinne Well, this use case that I have is that I just want to type the response that I receive, which for the purpose for which the Records were created, it's perfect.

  9. Chrimle commented on Nov 9, 2025

    @Chrimle
    Contributor

    @Radenixlol check out openapi-to-java-records-mustache-templates (shameless ad 😉 ).

    But yes, it is definitely not easy to implement to continue to support all existing features.

    @jpfinne Builders are fairly straight-forward and works pretty much like the current generateBuilders.mustache. But again, the issue is supporting all existing features and configurations... 😅

  10. urmichm commented on Feb 24, 2026

    @urmichm

    Will the Kotlin version be updated? If yes, up to which version?

  11. wing328 commented on Feb 24, 2026

    @wing328
    MemberAuthor

    No.

    Output from generators (e.g. Java client, Kotlin client/server) is not impacted by this change, which means if the output (e.g. Kotlin clients) defaults to JDK11 (even though it has reached EOL), it will continue to do so.

  12. wing328 commented on Mar 4, 2026

    @wing328
    MemberAuthor

    Will the Kotlin version be updated? If yes, up to which version?

    According to https://endoflife.date/kotlin, Kotlin 2.2 already reached EOL 2 months ago.

    We will gradually migrate the output to use Kotlin 2.3

  13. Sekator778 commented on Oct 31, 2026

    @Sekator778
    Contributor

    @wing328 you wrote here that records had no plan from the core team, but contributions were welcome. Five Spring steps are merged; #25494 proposes the same option for the java client, one library per PR, default output unchanged. Should it go ahead, or stay Spring-only?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Announcement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions