title: Where is the new SonarQube Gradle Plugin?
body: <p>Having recently upgraded from a previous version of Gradle, I started getting a warning that I should use the official SonarQube plugin:</p>
  
  <blockquote>
    <p>The 'sonar-runner' plugin has been deprecated and is scheduled to be removed in Gradle 3.0. please use the official plugin from SonarQube (<a href="https://redirect.sonarsource.com/doc/gradle.html" rel="nofollow noreferrer">the docs</a>).</p>
  </blockquote>
  
  <p>From that link, I was directed to the Gradle Plugins page for the new plugin (<a href="https://plugins.gradle.org/plugin/org.sonarqube" rel="nofollow noreferrer">https://plugins.gradle.org/plugin/org.sonarqube</a>), which tells me to use:</p>
  
  <pre><code>buildscript {
    repositories {
      maven {
        url "https://plugins.gradle.org/m2/"
      }
    }
    dependencies {
      classpath "org.sonarsource.scanner.gradle:sonarqube-gradle-plugin:1.2"
    }
  }
  
  apply plugin: "org.sonarqube"
  </code></pre>
  
  <p>But that fails. The error I'm seeing in my Gradle output is:</p>
  
  <pre><code>Could not GET 'https://plugins.gradle.org/m2/org/sonarsource/scanner/gradle/sonarqube-gradle-plugin/1.2/sonarqube-gradle-plugin-1.2.pom'.  
  &gt; peer not authenticated
  </code></pre>
  
  <p>When I try to access the same location through a browser, I get a 404, and if I browse the file structure from <a href="https://plugins.gradle.org/m2/org" rel="nofollow noreferrer">https://plugins.gradle.org/m2/org</a>, I can go as far as <a href="https://jcenter.bintray.com/org/sonarsource/scanner/" rel="nofollow noreferrer">https://jcenter.bintray.com/org/sonarsource/scanner/</a>, but the only subdirectories I see there are 'ant', 'cli' and 'maven', no 'gradle'. Presumably this is the root cause of my problem.</p>
  
  <p>From other questions on here, I can see that others are using the plugin, so presumably it's available somewhere, but I can't find it. Any suggestions on a working source?</p>