I am currently trying to upgrade my gradle to a new version (2.14.1 to latest gradle) and originally we used sonar-runner in 2.14.1, and after changing the wrapper to 4.8.1, resulted in ‘Plugin with id ‘sonar-runner’ not found’ so I’ve decided to just upgrade to sonarqube as well since
Users of Gradle Sonar or Sonar Runner Plugins ? The existing Gradle Sonar Runner and Gradle Sonar plugins, which are part of the Gradle distribution, should no longer be used (See this official note from the Gradleware team). The use of the Gradle SonarQube plugin is recommended instead.
However, I’ve tried using both methods stated here https://discuss.gradle.org/t/plugin-with-id-org-sonarqube-not-found/11588, as well as the solution at the end, but I am getting
Parallel execution with configuration on demand is an incubating feature. Download https://plugins.gradle.org/m2/org/sonarsource/scanner/gradle/sonarqube-gradle-plugin/2.0.1/sonarqube-gradle-plugin-2.0.1.pom Download https://plugins.gradle.org/m2/com/google/guava/guava/17.0/guava-17.0.pom1.pom Download https://plugins.gradle.org/m2/org/sonarsource/scanner/api/sonar-scanner-api/2.6/sonar-scanner-api-2.6.pom Download https://plugins.gradle.org/m2/com/google/guava/guava-parent/17.0/guava-parent-17.0.pom Download https://plugins.gradle.org/m2/org/sonarsource/scanner/api/sonar-scanner-api-parent/2.6/sonar-scanner-api-parent-2.6.pom Download https://plugins.gradle.org/m2/org/sonarsource/parent/parent/31/parent-31.pom Download https://plugins.gradle.org/m2/com/google/guava/guava/17.0/guava-17.0.jar Download https://plugins.gradle.org/m2/org/sonarsource/scanner/gradle/sonarqube-gradle-plugin/2.0.1/sonarqube-gradle-plugin-2.0.1.jar Download https://plugins.gradle.org/m2/org/sonarsource/scanner/api/sonar-scanner-api/2.6/sonar-scanner-api-2.6.jar FAILURE: Build failed with an exception. ... * What went wrong: A problem occurred evaluating script. > Plugin with id 'org.sonarqube' not found.