Delombok using Gradle

前端 未结 3 886
闹比i
闹比i 2021-01-04 02:06

As part of our build process we analyse our source code with SonarQube.

One problem with this is that we use Lombok annotations and SonarQube is not handling this ve

3条回答
  •  离开以前
    2021-01-04 02:28

    Using an Ant task is fine. No "Ant preconfiguration" should be necessary. Alternatively, you could use a JavaExec task to call delombok as in your last snippet. (JavaExec doesn't currently support the -jar option, so you'd have to name the main class.) Using a Maven plugin from Gradle isn't possible (except for executing Maven with an Exec task).

提交回复
热议问题