Skip to content

Upgrade Lombok to accommodate newer Java versions #142

Closed
@timtebeek

Description

@timtebeek
Member

The Lombok changelog shows a JDK17 support was added in 1.18.22; JDK 18 support was added in 1.18.24. Any upgrade to Java 17 should thus also bump Lombok accordingly.

The changelog also lists a number of (improbable) breaking changes that we might be able to provide recipes for if needed.

We could also automate the migration of promoted experimental features such as:

  • from lombok.experimental.Builder to lombok.Builder
  • from lombok.experimental.Value to lombok.Value
  • from lombok.experimental.Wither to lombok.With
  • from lombok.experimental.var to lombok.var
  • from lombok.experimental.val to lombok.val (and then to final var)

Activity

timtebeek

timtebeek commented on Oct 30, 2022

@timtebeek
MemberAuthor

Implementation wise I expect these changes to mostly use yaml configuration of existing recipes; ideally support for Lombok in the parser isn't needed yet, as it mostly concerns dependencies and imports, not the generated constructs added by Lombok.

moved this to Backlog in OpenRewriteon Nov 1, 2022
self-assigned this
on Nov 2, 2022
moved this from Backlog to In Progress in OpenRewriteon Nov 2, 2022
Repository owner moved this from In Progress to Done in OpenRewriteon Nov 2, 2022
added this to the 1.14.0 milestone on Nov 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

recipeRecipe requested

Type

No type

Projects

Status

Done

Relationships

None yet

    Development

    No branches or pull requests

      Participants

      @timtebeek@tkvangorder

      Issue actions

        Upgrade Lombok to accommodate newer Java versions · Issue #142 · openrewrite/rewrite-migrate-java