Apparently, your Gradle project group or name contains a whitespace. This value becomes part of the default value for the Sonar project key, which must not contain whitespace. To fix the problem, you can either reconfigure the Gradle project group or name (it's safer not to have a whitespace in there anyway), or reconfigure the Sonar project key for the project that applies the sonar-runner
plugin. The latter could look like this:
sonarProperties {
property "sonar.projectKey", "foo:shared"
}
If the offender is the Gradle project name (rather than the group), you may have to reconfigure "sonar.projectName"
as well.