Skip to content

Commit

Permalink
Do not annotate delombed files as generated.
Browse files Browse the repository at this point in the history
Since we "delombok" the model classes at build time, the only reason we
need Lombok as a runtime dependency is because the "delomboked" classes
are annotated with the "@lombok.generated" annotation.

That annotation may be useful for code analysis, but a nearly 2MB
dependency just for one annotation is certainly not worth it.

So we configure Lombok _not_ to add that annotation, and remove the
entire Lombok runtime dependency. We only need Lombok at build time.
  • Loading branch information
gouttegd committed Sep 8, 2024
1 parent fd2ac90 commit c569d04
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
5 changes: 0 additions & 5 deletions core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,6 @@
</scm>

<dependencies>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>1.18.34</version>
</dependency>
<dependency>
<groupId>org.antlr</groupId>
<artifactId>antlr4-runtime</artifactId>
Expand Down
1 change: 1 addition & 0 deletions core/src/main/lombok/lombok.config
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
lombok.addLombokGeneratedAnnotation = false

0 comments on commit c569d04

Please sign in to comment.