Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Exclude Lombok from the classpath if present #659

@yeikel

Description

@yeikel

What problem are you trying to solve?

If a maintainer is careless and adds lambok to the classpath, this recipe should exclude it.

Describe the situation before applying the recipe

         <dependency>
             <groupId>dependency</groupId>
             <artifactId>artifact</artifactId>
         </dependency>

This dependency adds lombok transitively with the compile scope.

Describe the situation after applying the recipe

         <dependency>
             <groupId>dependency</groupId>
             <artifactId>artifact</artifactId>
+            <exclusions>
+                <exclusion>
+                    <groupId>org.projectlombok</groupId>
+                    <artifactId>lombok</artifactId>
+                </exclusion>
+            </exclusions>
         </dependency>

Metadata

Metadata

Assignees

Labels

recipeRecipe requested

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions