Created
December 19, 2024 08:13
-
-
Save jabrena/e53b835087d5e758420dfcda84989a85 to your computer and use it in GitHub Desktop.
How to ban Lombok in your maven project
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <plugin> | |
| <groupId>org.apache.maven.plugins</groupId> | |
| <artifactId>maven-enforcer-plugin</artifactId> | |
| <version>3.5.0</version> | |
| <executions> | |
| <execution> | |
| <id>enforce</id> | |
| <configuration> | |
| <rules> | |
| <dependencyConvergence /> | |
| <banDuplicatePomDependencyVersions /> | |
| <requireMavenVersion> | |
| <version>3.9.9</version> | |
| </requireMavenVersion> | |
| <requireJavaVersion> | |
| <version>23</version> | |
| </requireJavaVersion> | |
| <bannedDependencies> | |
| <excludes> | |
| <exclude>org.projectlombok:lombok</exclude> | |
| </excludes> | |
| </bannedDependencies> | |
| </rules> | |
| <fail>true</fail> | |
| </configuration> | |
| <goals> | |
| <goal>enforce</goal> | |
| </goals> | |
| </execution> | |
| </executions> | |
| </plugin> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment