We use Gradle to build our Java code and sonar-scanner to analyse it, but sonar-scanner generates false-positive codesmells regarding Lombok library, for example: “Remove this unused “fname” private field” or “Add a private constructor to hide the implicit public one” .
We have faced similar issues with sonar-scanner and Maven projects as well, and we used the following plugin: http://javaln.blogspot.com/2019/09/sonar-lombok-maven-jacoco.html in order to generate lombok .jar files. Then we set sonar.java.libraries property accordingly to point to the location of these .jars, in our sonar-project.properties file and the problem was solved.
However, we cannot find anything similar in order to generate lombok .jar files for Gradle projects. Do you know if there is such a setting or maybe another way to resolve this issue in Gradle?