Fix "Duplicate class file" problems caused by delombok generated sources when releasing #286
Labels
enhancement
A request for change or improvement to an existing feature
Milestone
When we release, we first delombok the code containing Lombok annotations, so that we get javadoc comments on the elements generated by Lombok, such as getters and setters.
However, the delomboked code remains in
target/generated-sources/delombok
when the build completes. As a result, IDEs see these as duplicate source files because the sources with Lombok annotations are insrc/main/java
and the delomboked sources are intarget/generated-sources/delombok
. For example, for a classcom.acme.model.User
residing insrc/main/java
with Lombok annotations, the delombokedcom.acme.model.User
source will reside intarget/generated-sources/delombok
. These are seen by any IDE as duplicate source files.This issue adds a step in the release profile to delete the entire
target/generated-sources/delombok
directory once javadocs have been generated.The text was updated successfully, but these errors were encountered: