Skip to content

Incompatibility with Lombok Gradle plugin #25

@davidjohnstonverint

Description

@davidjohnstonverint

We started using the Lombok plugin for gradle rather than pulling in the dependencies and setting things up manually:

id 'io.freefair.lombok' version '6.4.2'

The result is the following warning in the gradle output and processSpring ends up being run on every gradle task (presumably because Gradle is unable to determine that it is already up to date.

> Task :processSpring
Execution optimizations have been disabled for task ':processSpring' to ensure correctness due to the following reasons:
  - Gradle detected a problem with the following location: 'C:\dev\git\foo\build\openapi'. Reason: Task ':generateEffectiveLombokConfig' uses this output of task ':processSpring' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed. Please refer to https://docs.gradle.org/7.4.2/userguide/validation_problems.html#implicit_dependency for more details about this problem.

I found the same issue raised against another gradle plugin and the reason was due to the dependencies not being modeled correctly within the plugin (Netflix/dgs-codegen#190). Is this something that can be fixed within this gradle plugin too?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions