SonarQube doesn't recognize lombok getters

We are using @Getter. but to answer my own question: I have fixed this issue by following the suggestion mentioned in:

we added the copyDependency step/gradle task which runs in Sonarqube test stage and SonarQube is able to pick it up now and we added:
sonar.java.libraries=build/libs,build/dependencies