Sonarqube analysis shows 'The main branch has no lines of code'

I have installed sonarqube 10.5.1 and manually added sonar groovy plugin and restarted it. I have also created a local project with groovy code and the build system as gradle. Configured all the necessary properties projectKey, projectName, token, host url as mentioned in sonarqube server while creating the project and ran the analysis. It says that the quality gate passed, ‘The main branch has no lines of code’, ‘No code files were found for analysis’. Does the latest sonarqube support analysis of groovy code or am I missing any other configuration ?Please help here

Hey there.

GitHub - Inform-Software/sonar-groovy: SonarQube plugin for Groovy is a community-supported plugin. I’d suggest raising an issue in their Github issues.