Gradle: node not available in the PATH

Hello,

we are trying to use the sonarqube plugin via gradle.

sonarqube {
       properties {
               property "sonar.sources", "./src/main/java,./nodejs/modules/"
               property "sonar.host.url", "HOST"
               property "sonar.projectKey", "PROJECT"
               property "sonar.login", "KEY"
       }
}

Unfortunately on this machine, node.js is installed locally via gradle and it is available in a path that is not included in the system PATH.

And the result is well-known:

Error when running: 'node -v'. Is Node.js available during analysis?
org.sonarsource.nodejs.NodeCommandException: Error when running: 'node -v'. Is Node.js available during analysis?

So since have an environment without node.js might be pretty common, can you suggest the better way to handle this issue?