Jcenter bintray sonar-scanner-api error

I am trying to build a Gradle project. I used Sonarqube plugin with different versions ‘2.8’ & ‘3.0’ but I am getting same error.

SonarQube plugin : id ‘org.sonarqube’ version ‘3.0’

I found these two links that say ‘jcenter’ dependency is deprecated.
https://docs.gradle.org/current/dsl/org.gradle.api.artifacts.dsl.RepositoryHandler.html#org.gradle.api.artifacts.dsl.RepositoryHandler:jcenter()

Here is the error:

|07-May-2021 21:17:18|2021-05-07T21:17:18.041-0400 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]|
|---|---|
|07-May-2021 21:17:18|2021-05-07T21:17:18.041-0400 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] FAILURE: Build failed with an exception.|
|07-May-2021 21:17:18|2021-05-07T21:17:18.041-0400 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]|
|07-May-2021 21:17:18|2021-05-07T21:17:18.041-0400 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] * What went wrong:|
|07-May-2021 21:17:18|2021-05-07T21:17:18.041-0400 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] A problem occurred configuring root project 'flyway-imali'.|
|07-May-2021 21:17:18|2021-05-07T21:17:18.041-0400 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Could not resolve all artifacts for configuration ':classpath'.|
|07-May-2021 21:17:18|2021-05-07T21:17:18.042-0400 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]    > Could not resolve org.sonarsource.scanner.api:sonar-scanner-api:2.15.0.2182.|
|07-May-2021 21:17:18|2021-05-07T21:17:18.042-0400 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]      Required by:|
|07-May-2021 21:17:18|2021-05-07T21:17:18.042-0400 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]          project : > org.sonarqube:org.sonarqube.gradle.plugin:3.0 > org.sonarsource.scanner.gradle:sonarqube-gradle-plugin:3.0|
|07-May-2021 21:17:18|2021-05-07T21:17:18.042-0400 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]       > Could not resolve org.sonarsource.scanner.api:sonar-scanner-api:2.15.0.2182.|
|07-May-2021 21:17:18|2021-05-07T21:17:18.042-0400 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]          > Could not get resource 'https://plugins.gradle.org/m2/org/sonarsource/scanner/api/sonar-scanner-api
|07-May-2021 21:17:18|2021-05-07T21:17:18.042-0400 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]             > Could not GET 
|07-May-2021 21:17:18|2021-05-07T21:17:18.042-0400 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]                > Connect to jcenter.bintray.com:443 [jcenter.bintray.com/34.95.74.180] failed: Connection timed out: connect|
|07-May-2021 21:17:18|2021-05-07T21:17:18.042-0400 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]|
|07-May-2021 21:17:18|2021-05-07T21:17:18.043-0400 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] * Try:|
|07-May-2021 21:17:18|2021-05-07T21:17:18.043-0400 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Run with --stacktrace option to get the stack trace.  Run with --scan to get full insights.|
|07-May-2021 21:17:18|2021-05-07T21:17:18.043-0400 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]|
|07-May-2021 21:17:18|2021-05-07T21:17:18.043-0400 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] * Get more help at https://help.gradle.org|
|07-May-2021 21:17:18|2021-05-07T21:17:18.043-0400 [ERROR] [org.gradle.internal.buildevents.BuildResultLogger]|
|07-May-2021 21:17:18|2021-05-07T21:17:18.044-0400 [ERROR] [org.gradle.internal.buildevents.BuildResultLogger] BUILD FAILED in 1m 14s|

Hi @zorro ,

Can you post the entirety of your logs? Also, are you using a corporate proxy? Make sure your proxy is configured in ~/.gradle/gradle.properties if necessary.

Joe

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.