Trouble accessing SonarQube Gradle Plugin

plugins

(Gregory Kman) #1

Using the docs Gradle Plugins Sonarqube in my build.gradle (I have tried both apply models {using the buildscript and the new plugins block})

I run ./gradlew build getting this error:

FAILURE: Build failed with an exception.

* What went wrong:
Could not resolve all dependencies for configuration ':compileClasspath'.
> Could not resolve org.sonarsource.scanner.gradle:sonarqube-gradle-plugin:2.0.1.
  Required by:
      com.xxx.xxx (removed for this post for security reasons)
   > Could not resolve org.sonarsource.scanner.gradle:sonarqube-gradle-plugin:2.0.1.
      > Could not get resource 'https://repo.gradle.org/gradle/repo/org/sonarsource/scanner/gradle/sonarqube-gradle-plugin/2.0.1/sonarqube-gradle-plugin-2.0.1.pom'.
         > Could not HEAD 'https://repo.gradle.org/gradle/repo/org/sonarsource/scanner/gradle/sonarqube-gradle-plugin/2.0.1/sonarqube-gradle-plugin-2.0.1.pom'. Received status code 401 from server: Unauthorized

The not authorized here is the key issue for me. Upon navigating to the address listed I get a login request from the site. See below.