Skip to content

Using Maven Lombok and Aspect doesn't compile #630

Closed
@ghost

Description

When trying to run mvn package the project that include some Aspect (ex: powertool-logging) and also using lombok as dependency break the compilation.

I'm trying to use the powertool with lombok

Expected Behavior

Should not break the build, or have something in the documentation that explains how to make them work together

Possible Solution

Add documentation explaining how to fix it, or use another mechanism to compile de aspect.

Steps to Reproduce (for bugs)

  1. Create a new project
  2. Add lombok dependency
  3. Add powertools-loggin dependency
  4. Add powertools-loggin aspect plugin
  5. Run mvn package

Environment

  • Powertools version used: Latest
  • Packaging format (Layers, Maven/Gradle): Maven
  • AWS Lambda function runtime: Java 11
  • Debugging logs
    [WARNING] You aren't using a compiler supported by lombok, so lombok will not work and has been disabled.
    Your processor is: org.aspectj.org.eclipse.jdt.internal.compiler.apt.dispatch.BatchProcessingEnvImpl
    Lombok supports: OpenJDK javac, ECJ
    :

How to enable debug mode**

# paste logs here

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions