> Could not resolve all artifacts for configuration ':classpath'.
> Could not resolve org.beryx:badass-runtime-plugin:1.12.4.
Required by:
project : > org.beryx.runtime:org.beryx.runtime.gradle.plugin:1.12.4
> Could not resolve org.beryx:badass-runtime-plugin:1.12.4.
> Could not get resource 'https://plugins.gradle.org/m2/org/beryx/badass-runtime-plugin/1.12.4/badass-runtime-plugin-1.12.4.module'.
> Could not GET 'https://jcenter.bintray.com/org/beryx/badass-runtime-plugin/1.12.4/badass-runtime-plugin-1.12.4.module'.
> Read timed out
Caused by: org.gradle.api.internal.artifacts.ivyservice.DefaultLenientConfiguration$ArtifactResolveException: Could not resolve all artifacts for configuration ':classpath'.
Caused by: org.gradle.api.resources.ResourceException: Could not get resource 'https://plugins.gradle.org/m2/org/beryx/badass-runtime-plugin/1.12.4/badass-runtime-plugin-1.12.4.module'.
Caused by: org.gradle.internal.resource.transport.http.HttpRequestException: Could not GET 'https://jcenter.bintray.com/org/beryx/badass-runtime-plugin/1.12.4/badass-runtime-plugin-1.12.4.module'.
This has worked fine before, but not anymore.
Sometimes it is a different plugin that fails this way.
Has it something to do with JFrog to Shut down JCenter and Bintray?
I’m also seeing this error. Curling the URL https://jcenter.bintray.com/org/beryx/badass-runtime-plugin/1.12.4/badass-runtime-plugin-1.12.4.module directly takes over a minute.
Facing the same issue.
It’s seems that Gradle Plugin Portal redirects to JCenter when a requested file is not found and JCenter seems to have downtime now …
See JCenter shutdown impact on Gradle builds. JFrog may have disabled even read-only access. This is why you should setup an internal repo, like Artifactory or Nexus.
The issue was resolved a couple hours later on the same day.
Service is back online.
We are actively working to reduce the JCenter dependency as much as possible.
Note that while JFrog announced a read-only version of JCenter would stay up, this shows it may not have the quality of service Gradle needs.
As a reminder, you can use status.gradle.com to check for any disruption to service.
Hi, thanks for your suggestion.
I tried your solution but it seems gradle will still try to connect jcenter anyway.
①I changed my local host and point jcenter.bintray.com to an non-exist ip like 192.168.0.5
②Applied the script you suggested at the beginning of the build
then , still got something like this ( timeout error in the end)
00:08:08.892 [DEBUG] [org.apache.http.impl.conn.PoolingHttpClientConnectionManager] Connection [id: 0][route: {s}->https://plugins.gradle.org:443] can be kept alive indefinitely
00:08:08.892 [DEBUG] [org.apache.http.impl.conn.DefaultManagedHttpClientConnection] http-outgoing-0: set socket timeout to 0
00:08:08.892 [DEBUG] [org.apache.http.impl.conn.PoolingHttpClientConnectionManager] Connection released: [id: 0][route: {s}->https://plugins.gradle.org:443][total kept alive: 1; route allocated: 1 of 20; total allocated: 1 of 20]
00:08:08.896 [DEBUG] [org.gradle.internal.resource.transport.http.AlwaysRedirectRedirectStrategy] Redirect requested to location 'https://jcenter.bintray.com/com/***'
00:08:08.897 [DEBUG] [org.apache.http.impl.execchain.RedirectExec] Resetting target auth state
00:08:08.898 [DEBUG] [org.apache.http.impl.execchain.RedirectExec] Redirecting to 'https://jcenter.bintray.com/com/***' via {s}->https://jcenter.bintray.com:443
00:08:08.899 [DEBUG] [org.apache.http.client.protocol.RequestAddCookies] CookieSpec selected: default
00:08:08.899 [DEBUG] [org.apache.http.client.protocol.RequestAuthCache] Auth cache not set in the context
00:08:08.899 [DEBUG] [org.apache.http.impl.conn.PoolingHttpClientConnectionManager] Connection request: [route: {s}->https://jcenter.bintray.com:443][total kept alive: 1; route allocated: 0 of 20; total allocated: 1 of 20]
00:08:08.899 [DEBUG] [org.apache.http.impl.conn.PoolingHttpClientConnectionManager] Connection leased: [id: 1][route: {s}->https://jcenter.bintray.com:443][total kept alive: 1; route allocated: 1 of 20; total allocated: 2 of 20]
00:08:08.899 [DEBUG] [org.apache.http.impl.execchain.MainClientExec] Opening connection {s}->https://jcenter.bintray.com:443
00:08:08.900 [DEBUG] [org.apache.http.impl.conn.DefaultHttpClientConnectionOperator] Connecting to jcenter.bintray.com/192.168.0.5:443
00:08:08.900 [DEBUG] [org.apache.http.conn.ssl.SSLConnectionSocketFactory] Connecting socket to jcenter.bintray.com/192.168.0.5:443 with timeout 30000
Correct me If I am wrong but your nexus stores the dependency because it was downloaded from the Gradle Plugin Portal/jcenter in the past. Try to download a new dependency (that is not in Gradle Plugin Portal and normally would redirect to jcenter AND was not downloaded in the past) from your nexus. Most probably it will download it from jcenter and store it so further calls will not require jcenter.
This issue is back again. It seems like the jcenter bintray SSL cert is now expired.
I’ve had trouble with 2 gradle plugins in recent minutes.
Example:
> Could not resolve org.cyclonedx:cyclonedx-core-java:7.2.0.
Required by:
project : > org.cyclonedx.bom:org.cyclonedx.bom.gradle.plugin:1.7.2 > org.cyclonedx:cyclonedx-gradle-plugin:1.7.2
> Could not resolve org.cyclonedx:cyclonedx-core-java:7.2.0.
> Could not get resource 'https://plugins.gradle.org/m2/org/cyclonedx/cyclonedx-core-java/7.2.0/cyclonedx-core-java-7.2.0.pom'.
> Could not HEAD 'https://jcenter.bintray.com/org/cyclonedx/cyclonedx-core-java/7.2.0/cyclonedx-core-java-7.2.0.pom'.
> PKIX path validation failed: java.security.cert.CertPathValidatorException: validity check failed
It seems like the issue is indeed back again. For the context, I was using the flutter_blue plugin just fine a few days ago, but now I encounter a bunch of errors, and all of them are related to jcenter bintray SSL cert.
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring project ':flutter_blue'.
> Could not resolve all files for configuration ':flutter_blue:classpath'.
> Could not resolve com.google.protobuf:protobuf-gradle-plugin:0.8.15.
Required by:
project :flutter_blue
> Could not resolve com.google.protobuf:protobuf-gradle-plugin:0.8.15.
> Could not get resource 'https://jcenter.bintray.com/com/google/protobuf/protobuf-gradle-plugin/0.8.15/protobuf-gradle-plugin-0.8.15.pom'.
> Could not GET 'https://jcenter.bintray.com/com/google/protobuf/protobuf-gradle-plugin/0.8.15/protobuf-gradle-plugin-0.8.15.pom'.
> The server may not support the client's requested TLS protocol versions: (TLSv1.2, TLSv1.3). You may need to configure the client to allow other protocols to be used. See: https://docs.gradle.org/7.4/userguide/build_environment.html#gradle_system_properties
> PKIX path validation failed: java.security.cert.CertPathValidatorException: validity check failed
> Could not resolve org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.3.72.
Required by:
project :flutter_blue > com.android.tools.build:gradle:4.1.0
project :flutter_blue > com.android.tools.build:gradle:4.1.0 > com.android.tools.build:builder:4.1.0
project :flutter_blue > com.android.tools.build:gradle:4.1.0 > com.android.tools.build:aaptcompiler:4.1.0
project :flutter_blue > com.android.tools.build:gradle:4.1.0 > com.android.tools.lint:lint-gradle-api:27.1.0
project :flutter_blue > com.android.tools.build:gradle:4.1.0 > com.android.tools.build:gradle-api:4.1.0
project :flutter_blue > com.android.tools.build:gradle:4.1.0 > androidx.databinding:databinding-compiler-common:4.1.0
project :flutter_blue > com.android.tools.build:gradle:4.1.0 > com.android.tools.build:builder:4.1.0 > com.android.tools.build:builder-model:4.1.0
project :flutter_blue > com.android.tools.build:gradle:4.1.0 > com.android.tools.build:builder:4.1.0 > com.android.tools:sdk-common:27.1.0
project :flutter_blue > com.android.tools.build:gradle:4.1.0 > com.android.tools.build:builder:4.1.0 > com.android.tools:common:27.1.0
project :flutter_blue > com.android.tools.build:gradle:4.1.0 > com.android.tools.build:builder:4.1.0 > com.android.tools.build:manifest-merger:27.1.0
project :flutter_blue > com.android.tools.build:gradle:4.1.0 > com.android.tools.build:builder:4.1.0 > com.android.tools.analytics-library:tracker:27.1.0
project :flutter_blue > com.android.tools.build:gradle:4.1.0 > com.android.tools.lint:lint-gradle-api:27.1.0 > com.android.tools.lint:lint-model:27.1.0
project :flutter_blue > com.android.tools.build:gradle:4.1.0 > com.android.tools.build:builder:4.1.0 > com.android.tools:sdklib:27.1.0 > com.android.tools:repository:27.1.0
project :flutter_blue > com.android.tools.build:gradle:4.1.0 > com.android.tools.build:builder:4.1.0 > com.android.tools:sdk-common:27.1.0 > com.android.tools.analytics-library:shared:27.1.0
> Could not resolve org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.3.72.
> Could not get resource 'https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-stdlib-jdk8/1.3.72/kotlin-stdlib-jdk8-1.3.72.pom'.
> Could not HEAD 'https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-stdlib-jdk8/1.3.72/kotlin-stdlib-jdk8-1.3.72.pom'.
> The server may not support the client's requested TLS protocol versions: (TLSv1.2, TLSv1.3). You may need to configure the client to allow other protocols to be used. See: https://docs.gradle.org/7.4/userguide/build_environment.html#gradle_system_properties
> PKIX path validation failed: java.security.cert.CertPathValidatorException: validity check failed
> Could not resolve org.ow2.asm:asm:7.0.
Required by:
project :flutter_blue > com.android.tools.build:gradle:4.1.0
project :flutter_blue > com.android.tools.build:gradle:4.1.0 > com.android.tools.build:builder:4.1.0
> Could not resolve org.ow2.asm:asm:7.0.
> Could not get resource 'https://jcenter.bintray.com/org/ow2/asm/asm/7.0/asm-7.0.pom'.
> Could not HEAD 'https://jcenter.bintray.com/org/ow2/asm/asm/7.0/asm-7.0.pom'.
> The server may not support the client's requested TLS protocol versions: (TLSv1.2, TLSv1.3). You may need to configure the client to allow other protocols to be used. See: https://docs.gradle.org/7.4/userguide/build_environment.html#gradle_system_properties
> PKIX path validation failed: java.security.cert.CertPathValidatorException: validity check failed
> Could not resolve org.ow2.asm:asm-analysis:7.0.
Required by:
project :flutter_blue > com.android.tools.build:gradle:4.1.0
> Could not resolve org.ow2.asm:asm-analysis:7.0.
> Could not get resource 'https://jcenter.bintray.com/org/ow2/asm/asm-analysis/7.0/asm-analysis-7.0.pom'.
> Could not HEAD 'https://jcenter.bintray.com/org/ow2/asm/asm-analysis/7.0/asm-analysis-7.0.pom'.
> The server may not support the client's requested TLS protocol versions: (TLSv1.2, TLSv1.3). You may need to configure the client to allow other protocols to be used. See: https://docs.gradle.org/7.4/userguide/build_environment.html#gradle_system_properties
> PKIX path validation failed: java.security.cert.CertPathValidatorException: validity check failed