From c569d04aa79971ff0cc8ffc21c5b4b57c6fe62ab Mon Sep 17 00:00:00 2001 From: Damien Goutte-Gattat Date: Sun, 8 Sep 2024 15:53:59 +0100 Subject: [PATCH] Do not annotate delombed files as generated. 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. --- core/pom.xml | 5 ----- core/src/main/lombok/lombok.config | 1 + 2 files changed, 1 insertion(+), 5 deletions(-) create mode 100644 core/src/main/lombok/lombok.config diff --git a/core/pom.xml b/core/pom.xml index 42ca68c..99574f9 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -17,11 +17,6 @@ - - org.projectlombok - lombok - 1.18.34 - org.antlr antlr4-runtime diff --git a/core/src/main/lombok/lombok.config b/core/src/main/lombok/lombok.config new file mode 100644 index 0000000..7164ffe --- /dev/null +++ b/core/src/main/lombok/lombok.config @@ -0,0 +1 @@ +lombok.addLombokGeneratedAnnotation = false