Disabling gradle.build detection in multi-language repository

Error Message

Gradle project detected. You should use the SonarQube plugin for Gradle during build rather than using this GitHub Action.

Summary

We have a github repository running the sonarsource/sonarcloud-github-action@master task. The repository has a gradle.build file, but it is not relevant for the source code we wish to analyse. We haven’t found a way to disable the check which is provoking the above error message and stopping the analysing from progressing.

Hi @glungley , welcome to the community!

Have you tried excluding the build.gradle file, or it’s parent directory, using that documentation?
If it doesn’t work, could you please provide a public repository to reproduce the issue?