Class LombokPlugin

java.lang.Object
io.freefair.gradle.plugins.lombok.LombokPlugin
All Implemented Interfaces:
Plugin<Project>

public class LombokPlugin extends Object implements Plugin<Project>
Gradle plugin that integrates Project Lombok with Java projects.

Applies the Lombok annotation processor to Java compilation and provides delombok tasks for generating de-annotated source code. Also configures integration with Mapstruct, SpotBugs, and SonarQube.

This plugin creates:

  • A lombok configuration for Lombok dependencies
  • Delombok tasks for each source set (e.g., delombok)
  • Integration with annotation processors and code quality tools
  • Constructor Details

    • LombokPlugin

      public LombokPlugin()
  • Method Details

    • apply

      public void apply(Project project)
      Specified by:
      apply in interface Plugin<Project>
    • getLombokBasePlugin

      public LombokBasePlugin getLombokBasePlugin()
    • getProject

      public Project getProject()
    • isSpotbugConfigured

      public boolean isSpotbugConfigured()