Workaround for Gradle incompatiblity with Sonar 4.4

See https://issues.gradle.org/browse/GRADLE-3062