Sonar-scanner + Lombok + Gradle = False-Positives codesmells

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: in order to generate lombok .jar files. Then we set property accordingly to point to the location of these .jars, in our 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?

Thank you