Build fails to resolve plugin dependencies during planned tls 1.0 deprecation

Today is November 14th. I ran a build at just before 11am today (1600UTC) I think this is related to the maintence scheduled to disable TLS 1.0

I have a fleet of linux machines building gradle builds for me. I cleared the cache on one of them (rm ~/.gradle/cache), after this my build could no longer resolve plugins.

I am using pluginmanagement { repositories { gradlePluginPortal } } in settings.gradle.kts

Example log output:

* What went wrong:
Plugin [id: 'org.ajoberstar.grgit', version: '3.1.1'] was not found in any of the following sources:

- Gradle Core Plugins (plugin is not in 'org.gradle' namespace)
- Plugin Repositories (could not resolve plugin artifact 'org.ajoberstar.grgit:org.ajoberstar.grgit.gradle.plugin:3.1.1')
  Searched in the following repositories:
    Gradle Central Plugin Repository

I saw the same issue with the kotlin plugin (1.3.21).

Here is my stack trace:

15:25:10  * What went wrong:
15:25:10  Plugin [id: 'org.jetbrains.kotlin.jvm', version: '1.3.21'] was not found in any of the following sources:
15:25:10  
15:25:10  - Gradle Core Plugins (plugin is not in 'org.gradle' namespace)
15:25:10  - Plugin Repositories (could not resolve plugin artifact 'org.jetbrains.kotlin.jvm:org.jetbrains.kotlin.jvm.gradle.plugin:1.3.21')
15:25:10    Searched in the following repositories:
15:25:10      Gradle Central Plugin Repository
15:25:10  
15:25:10  * Try:
15:25:10  Run with --info or --debug option to get more log output. Run with --scan to get full insights.
15:25:10  
15:25:10  * Exception is:
15:25:10  org.gradle.api.plugins.UnknownPluginException: Plugin [id: 'org.jetbrains.kotlin.jvm', version: '1.3.21'] was not found in any of the following sources:
15:25:10  
15:25:10  - Gradle Core Plugins (plugin is not in 'org.gradle' namespace)
15:25:10  - Plugin Repositories (could not resolve plugin artifact 'org.jetbrains.kotlin.jvm:org.jetbrains.kotlin.jvm.gradle.plugin:1.3.21')
15:25:10    Searched in the following repositories:
15:25:10      Gradle Central Plugin Repository
15:25:10  	at org.gradle.plugin.use.internal.DefaultPluginRequestApplicator.resolveToFoundResult(DefaultPluginRequestApplicator.java:262)
15:25:10  	at org.gradle.plugin.use.internal.DefaultPluginRequestApplicator.access$100(DefaultPluginRequestApplicator.java:63)
15:25:10  	at org.gradle.plugin.use.internal.DefaultPluginRequestApplicator$1.transform(DefaultPluginRequestApplicator.java:91)
15:25:10  	at org.gradle.plugin.use.internal.DefaultPluginRequestApplicator$1.transform(DefaultPluginRequestApplicator.java:88)
15:25:10  	at org.gradle.util.CollectionUtils.collect(CollectionUtils.java:205)
15:25:10  	at org.gradle.util.CollectionUtils.collect(CollectionUtils.java:200)
15:25:10  	at org.gradle.plugin.use.internal.DefaultPluginRequestApplicator.applyPlugins(DefaultPluginRequestApplicator.java:88)
15:25:10  	at org.gradle.kotlin.dsl.provider.PluginRequestsHandler.handle(PluginRequestsHandler.kt:49)
15:25:10  	at org.gradle.kotlin.dsl.provider.StandardKotlinScriptEvaluator$InterpreterHost.applyPluginsTo(KotlinScriptEvaluator.kt:190)
15:25:10  	at org.gradle.kotlin.dsl.execution.Interpreter$ProgramHost.applyPluginsTo(Interpreter.kt:364)
15:25:10  	at Program.execute(Unknown Source)
15:25:10  	at org.gradle.kotlin.dsl.execution.Interpreter$ProgramHost.eval(Interpreter.kt:506)
15:25:10  	at org.gradle.kotlin.dsl.execution.Interpreter.eval(Interpreter.kt:206)
15:25:10  	at org.gradle.kotlin.dsl.provider.StandardKotlinScriptEvaluator.evaluate(KotlinScriptEvaluator.kt:114)
15:25:10  	at org.gradle.kotlin.dsl.provider.KotlinScriptPluginFactory$create$1.invoke(KotlinScriptPluginFactory.kt:51)
15:25:10  	at org.gradle.kotlin.dsl.provider.KotlinScriptPluginFactory$create$1.invoke(KotlinScriptPluginFactory.kt:36)
15:25:10  	at org.gradle.kotlin.dsl.provider.KotlinScriptPlugin.apply(KotlinScriptPlugin.kt:34)
15:25:10  	at org.gradle.configuration.BuildOperationScriptPlugin$1$1.run(BuildOperationScriptPlugin.java:69)
15:25:10  	at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:402)
15:25:10  	at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:394)
15:25:10  	at org.gradle.internal.operations.DefaultBuildOperationExecutor$1.execute(DefaultBuildOperationExecutor.java:165)
15:25:10  	at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:250)
15:25:10  	at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:158)
15:25:10  	at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:92)
15:25:10  	at org.gradle.internal.operations.DelegatingBuildOperationExecutor.run(DelegatingBuildOperationExecutor.java:31)
15:25:10  	at org.gradle.configuration.BuildOperationScriptPlugin$1.execute(BuildOperationScriptPlugin.java:66)
15:25:10  	at org.gradle.configuration.BuildOperationScriptPlugin$1.execute(BuildOperationScriptPlugin.java:63)
15:25:10  	at org.gradle.configuration.internal.DefaultUserCodeApplicationContext.apply(DefaultUserCodeApplicationContext.java:48)
15:25:10  	at org.gradle.configuration.BuildOperationScriptPlugin.apply(BuildOperationScriptPlugin.java:63)
15:25:10  	at org.gradle.configuration.project.BuildScriptProcessor$1.run(BuildScriptProcessor.java:44)
15:25:10  	at org.gradle.internal.Factories$1.create(Factories.java:25)
15:25:10  	at org.gradle.api.internal.project.DefaultProjectStateRegistry$ProjectStateImpl.withMutableState(DefaultProjectStateRegistry.java:200)
15:25:10  	at org.gradle.api.internal.project.DefaultProjectStateRegistry$ProjectStateImpl.withMutableState(DefaultProjectStateRegistry.java:186)
15:25:10  	at org.gradle.configuration.project.BuildScriptProcessor.execute(BuildScriptProcessor.java:41)
15:25:10  	at org.gradle.configuration.project.BuildScriptProcessor.execute(BuildScriptProcessor.java:26)
15:25:10  	at org.gradle.configuration.project.ConfigureActionsProjectEvaluator.evaluate(ConfigureActionsProjectEvaluator.java:34)
15:25:10  	at org.gradle.configuration.project.LifecycleProjectEvaluator$EvaluateProject$1.run(LifecycleProjectEvaluator.java:106)
15:25:10  	at org.gradle.internal.Factories$1.create(Factories.java:25)
15:25:10  	at org.gradle.internal.work.DefaultWorkerLeaseService.withLocks(DefaultWorkerLeaseService.java:183)
15:25:10  	at org.gradle.internal.work.StopShieldingWorkerLeaseService.withLocks(StopShieldingWorkerLeaseService.java:40)
15:25:10  	at org.gradle.api.internal.project.DefaultProjectStateRegistry$ProjectStateImpl.withProjectLock(DefaultProjectStateRegistry.java:226)
15:25:10  	at org.gradle.api.internal.project.DefaultProjectStateRegistry$ProjectStateImpl.withMutableState(DefaultProjectStateRegistry.java:220)
15:25:10  	at org.gradle.api.internal.project.DefaultProjectStateRegistry$ProjectStateImpl.withMutableState(DefaultProjectStateRegistry.java:186)
15:25:10  	at org.gradle.configuration.project.LifecycleProjectEvaluator$EvaluateProject.run(LifecycleProjectEvaluator.java:95)
15:25:10  	at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:402)
15:25:10  	at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:394)
15:25:10  	at org.gradle.internal.operations.DefaultBuildOperationExecutor$1.execute(DefaultBuildOperationExecutor.java:165)
15:25:10  	at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:250)
15:25:10  	at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:158)
15:25:10  	at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:92)
15:25:10  	at org.gradle.internal.operations.DelegatingBuildOperationExecutor.run(DelegatingBuildOperationExecutor.java:31)
15:25:10  	at org.gradle.configuration.project.LifecycleProjectEvaluator.evaluate(LifecycleProjectEvaluator.java:67)
15:25:10  	at org.gradle.api.internal.project.DefaultProject.evaluate(DefaultProject.java:695)
15:25:10  	at org.gradle.api.internal.project.DefaultProject.evaluate(DefaultProject.java:143)
15:25:10  	at org.gradle.execution.TaskPathProjectEvaluator.configure(TaskPathProjectEvaluator.java:35)
15:25:10  	at org.gradle.execution.TaskPathProjectEvaluator.configureHierarchy(TaskPathProjectEvaluator.java:60)
15:25:10  	at org.gradle.configuration.DefaultBuildConfigurer.configure(DefaultBuildConfigurer.java:41)
15:25:10  	at org.gradle.initialization.DefaultGradleLauncher$ConfigureBuild.run(DefaultGradleLauncher.java:302)
15:25:10  	at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:402)
15:25:10  	at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:394)
15:25:10  	at org.gradle.internal.operations.DefaultBuildOperationExecutor$1.execute(DefaultBuildOperationExecutor.java:165)
15:25:10  	at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:250)
15:25:10  	at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:158)
15:25:10  	at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:92)
15:25:10  	at org.gradle.internal.operations.DelegatingBuildOperationExecutor.run(DelegatingBuildOperationExecutor.java:31)
15:25:10  	at org.gradle.initialization.DefaultGradleLauncher.configureBuild(DefaultGradleLauncher.java:210)
15:25:10  	at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:151)
15:25:10  	at org.gradle.initialization.DefaultGradleLauncher.executeTasks(DefaultGradleLauncher.java:134)
15:25:10  	at org.gradle.internal.invocation.GradleBuildController$1.execute(GradleBuildController.java:58)
15:25:10  	at org.gradle.internal.invocation.GradleBuildController$1.execute(GradleBuildController.java:55)
15:25:10  	at org.gradle.internal.invocation.GradleBuildController$3.create(GradleBuildController.java:82)
15:25:10  	at org.gradle.internal.invocation.GradleBuildController$3.create(GradleBuildController.java:75)
15:25:10  	at org.gradle.internal.work.DefaultWorkerLeaseService.withLocks(DefaultWorkerLeaseService.java:183)
15:25:10  	at org.gradle.internal.work.StopShieldingWorkerLeaseService.withLocks(StopShieldingWorkerLeaseService.java:40)
15:25:10  	at org.gradle.internal.invocation.GradleBuildController.doBuild(GradleBuildController.java:75)
15:25:10  	at org.gradle.internal.invocation.GradleBuildController.run(GradleBuildController.java:55)
15:25:10  	at org.gradle.tooling.internal.provider.ExecuteBuildActionRunner.run(ExecuteBuildActionRunner.java:31)
15:25:10  	at org.gradle.launcher.exec.ChainingBuildActionRunner.run(ChainingBuildActionRunner.java:35)
15:25:10  	at org.gradle.launcher.exec.BuildOutcomeReportingBuildActionRunner.run(BuildOutcomeReportingBuildActionRunner.java:58)
15:25:10  	at org.gradle.tooling.internal.provider.ValidatingBuildActionRunner.run(ValidatingBuildActionRunner.java:32)
15:25:10  	at org.gradle.launcher.exec.BuildCompletionNotifyingBuildActionRunner.run(BuildCompletionNotifyingBuildActionRunner.java:39)
15:25:10  	at org.gradle.launcher.exec.RunAsBuildOperationBuildActionRunner$3.call(RunAsBuildOperationBuildActionRunner.java:51)
15:25:10  	at org.gradle.launcher.exec.RunAsBuildOperationBuildActionRunner$3.call(RunAsBuildOperationBuildActionRunner.java:45)
15:25:10  	at org.gradle.internal.operations.DefaultBuildOperationExecutor$CallableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:416)
15:25:10  	at org.gradle.internal.operations.DefaultBuildOperationExecutor$CallableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:406)
15:25:10  	at org.gradle.internal.operations.DefaultBuildOperationExecutor$1.execute(DefaultBuildOperationExecutor.java:165)
15:25:10  	at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:250)
15:25:10  	at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:158)
15:25:10  	at org.gradle.internal.operations.DefaultBuildOperationExecutor.call(DefaultBuildOperationExecutor.java:102)
15:25:10  	at org.gradle.internal.operations.DelegatingBuildOperationExecutor.call(DelegatingBuildOperationExecutor.java:36)
15:25:10  	at org.gradle.launcher.exec.RunAsBuildOperationBuildActionRunner.run(RunAsBuildOperationBuildActionRunner.java:45)
15:25:10  	at org.gradle.launcher.exec.InProcessBuildActionExecuter$1.transform(InProcessBuildActionExecuter.java:49)
15:25:10  	at org.gradle.launcher.exec.InProcessBuildActionExecuter$1.transform(InProcessBuildActionExecuter.java:46)
15:25:10  	at org.gradle.composite.internal.DefaultRootBuildState.run(DefaultRootBuildState.java:78)
15:25:10  	at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:46)
15:25:10  	at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:31)
15:25:10  	at org.gradle.launcher.exec.BuildTreeScopeBuildActionExecuter.execute(BuildTreeScopeBuildActionExecuter.java:42)
15:25:10  	at org.gradle.launcher.exec.BuildTreeScopeBuildActionExecuter.execute(BuildTreeScopeBuildActionExecuter.java:28)
15:25:10  	at org.gradle.tooling.internal.provider.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:78)
15:25:10  	at org.gradle.tooling.internal.provider.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:52)
15:25:10  	at org.gradle.tooling.internal.provider.SubscribableBuildActionExecuter.execute(SubscribableBuildActionExecuter.java:59)
15:25:10  	at org.gradle.tooling.internal.provider.SubscribableBuildActionExecuter.execute(SubscribableBuildActionExecuter.java:36)
15:25:10  	at org.gradle.tooling.internal.provider.SessionScopeBuildActionExecuter.execute(SessionScopeBuildActionExecuter.java:68)
15:25:10  	at org.gradle.tooling.internal.provider.SessionScopeBuildActionExecuter.execute(SessionScopeBuildActionExecuter.java:38)
15:25:10  	at org.gradle.tooling.internal.provider.GradleThreadBuildActionExecuter.execute(GradleThreadBuildActionExecuter.java:37)
15:25:10  	at org.gradle.tooling.internal.provider.GradleThreadBuildActionExecuter.execute(GradleThreadBuildActionExecuter.java:26)
15:25:10  	at org.gradle.tooling.internal.provider.ParallelismConfigurationBuildActionExecuter.execute(ParallelismConfigurationBuildActionExecuter.java:43)
15:25:10  	at org.gradle.tooling.internal.provider.ParallelismConfigurationBuildActionExecuter.execute(ParallelismConfigurationBuildActionExecuter.java:29)
15:25:10  	at org.gradle.tooling.internal.provider.StartParamsValidatingActionExecuter.execute(StartParamsValidatingActionExecuter.java:60)
15:25:10  	at org.gradle.tooling.internal.provider.StartParamsValidatingActionExecuter.execute(StartParamsValidatingActionExecuter.java:32)
15:25:10  	at org.gradle.tooling.internal.provider.SessionFailureReportingActionExecuter.execute(SessionFailureReportingActionExecuter.java:55)
15:25:10  	at org.gradle.tooling.internal.provider.SessionFailureReportingActionExecuter.execute(SessionFailureReportingActionExecuter.java:41)
15:25:10  	at org.gradle.tooling.internal.provider.SetupLoggingActionExecuter.execute(SetupLoggingActionExecuter.java:48)
15:25:10  	at org.gradle.tooling.internal.provider.SetupLoggingActionExecuter.execute(SetupLoggingActionExecuter.java:32)
15:25:10  	at org.gradle.launcher.daemon.server.exec.ExecuteBuild.doBuild(ExecuteBuild.java:67)
15:25:10  	at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36)
15:25:10  	at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:104)
15:25:10  	at org.gradle.launcher.daemon.server.exec.WatchForDisconnection.execute(WatchForDisconnection.java:37)
15:25:10  	at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:104)
15:25:10  	at org.gradle.launcher.daemon.server.exec.ResetDeprecationLogger.execute(ResetDeprecationLogger.java:26)
15:25:10  	at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:104)
15:25:10  	at org.gradle.launcher.daemon.server.exec.RequestStopIfSingleUsedDaemon.execute(RequestStopIfSingleUsedDaemon.java:34)
15:25:10  	at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:104)
15:25:10  	at org.gradle.launcher.daemon.server.exec.ForwardClientInput$2.call(ForwardClientInput.java:74)
15:25:10  	at org.gradle.launcher.daemon.server.exec.ForwardClientInput$2.call(ForwardClientInput.java:72)
15:25:10  	at org.gradle.util.Swapper.swap(Swapper.java:38)
15:25:10  	at org.gradle.launcher.daemon.server.exec.ForwardClientInput.execute(ForwardClientInput.java:72)
15:25:10  	at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:104)
15:25:10  	at org.gradle.launcher.daemon.server.exec.LogAndCheckHealth.execute(LogAndCheckHealth.java:50)
15:25:10  	at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:104)
15:25:10  	at org.gradle.launcher.daemon.server.exec.LogToClient.doBuild(LogToClient.java:62)
15:25:10  	at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36)
15:25:10  	at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:104)
15:25:10  	at org.gradle.launcher.daemon.server.exec.EstablishBuildEnvironment.doBuild(EstablishBuildEnvironment.java:81)
15:25:10  	at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36)
15:25:10  	at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:104)
15:25:10  	at org.gradle.launcher.daemon.server.exec.StartBuildOrRespondWithBusy$1.run(StartBuildOrRespondWithBusy.java:50)
15:25:10  	at org.gradle.launcher.daemon.server.DaemonStateCoordinator$1.run(DaemonStateCoordinator.java:295)
15:25:10  	at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:63)
15:25:10  	at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:46)
15:25:10  	at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:55)
15:25:10  

Hi @dgoetsch,

What version of the JDK are you using. If you are using a version higher than JDK 1.6 you should have at least TLS 1.1 support. What version of Gradle are you using? Can you run with --stacktrace?

Also, your configuration should be (don’t forget the parenthesees)

pluginmanagement { repositories { gradlePluginPortal() } }

Hi,

we have the same issue from today

Plugin [id: 'net.researchgate.release', version: '2.6.0'] was not found in any of the following sources:

- Gradle Core Plugins (plugin is not in 'org.gradle' namespace)
- Plugin Repositories (could not resolve plugin artifact 'net.researchgate.release:net.researchgate.release.gradle.plugin:2.6.0')
  Searched in the following repositories:
    Gradle Central Plugin Repository

checking with --debug flag it appears to be ssl connection problem to gradle.
Maybe is just part of the migration and it might work tomorrow or it needs more investigation on gradle side.

for passing artifact

Connecting socket to plugins.gradle.org/104.18.191.9:443 with timeout 30000
    Starting handshake
    07:45:02.490 [DEBUG] [org.apache.http.conn.ssl.SSLConnectionSocketFactory] Secure session established
    07:45:02.490 [DEBUG] [org.apache.http.conn.ssl.SSLConnectionSocketFactory]  negotiated protocol: TLSv1.3
    07:45:02.490 [DEBUG] [org.apache.http.conn.ssl.SSLConnectionSocketFactory]  negotiated cipher suite: TLS_AES_128_GCM_SHA256
    07:45:02.495 [DEBUG] [org.apache.http.conn.ssl.SSLConnectionSocketFactory]  peer principal: CN=gradle.org, O="CloudFlare, Inc.", L=San Francisco, ST=CA, C=US
    07:45:02.495 [DEBUG] [org.apache.http.conn.ssl.SSLConnectionSocketFactory]  peer alternative names: [*.gradle.org, gradle.org]
    07:45:02.496 [DEBUG] [org.apache.http.conn.ssl.SSLConnectionSocketFactory]  issuer principal: CN=CloudFlare Inc ECC CA-2, O="CloudFlare, Inc.", L=San Francisco, ST=CA, C=US
    07:45:02.497 [DEBUG] [org.apache.http.impl.conn.DefaultHttpClientConnectionOperator] Connection established 10.49.17.206:60302<->104.18.191.9:443

for failing ones

Connecting socket to plugins.gradle.org/104.18.190.9:443 with timeout 30000
Starting handshake
07:45:03.668 [DEBUG] [org.apache.http.conn.ssl.SSLConnectionSocketFactory] Secure session established
07:45:03.668 [DEBUG] [org.apache.http.conn.ssl.SSLConnectionSocketFactory]  negotiated protocol: TLSv1.3
07:45:03.668 [DEBUG] [org.apache.http.conn.ssl.SSLConnectionSocketFactory]  negotiated cipher suite: TLS_AES_128_GCM_SHA256
07:45:03.668 [DEBUG] [org.apache.http.conn.ssl.DefaultHostnameVerifier] peer not authenticated
javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated

for the other plugin that it passes also goes to the 104.18.190.9:443 (in some builds) without problem

tried a few times, and always on the artifact Plugin [id: ‘net.researchgate.release’, version: ‘2.6.0’] fails

build machine

------------------------------------------------------------
Gradle 5.4.1
------------------------------------------------------------

Build time:   2019-04-26 08:14:42 UTC
Revision:     261d171646b36a6a28d5a19a69676cd098a4c19d

Kotlin:       1.3.21
Groovy:       2.5.4
Ant:          Apache Ant(TM) version 1.9.13 compiled on July 10 2018
JVM:          11 (Oracle Corporation 11+28)

I got this problem today also. Not the same plugin every time

First

* What went wrong:
Plugin [id: 'de.undercouch.download', version: '4.0.1'] was not found in any of the following sources:

- Gradle Core Plugins (plugin is not in 'org.gradle' namespace)
- Plugin Repositories (could not resolve plugin artifact 'de.undercouch.download:de.undercouch.download.gradle.plugin:4.0.1')
  Searched in the following repositories:
    Gradle Central Plugin Repository

Then I ran the build again

* What went wrong:
Plugin [id: 'org.beryx.runtime', version: '1.8.0'] was not found in any of the following sources:

- Gradle Core Plugins (plugin is not in 'org.gradle' namespace)
- Plugin Repositories (could not resolve plugin artifact 'org.beryx.runtime:org.beryx.runtime.gradle.plugin:1.8.0')
  Searched in the following repositories:
    Gradle Central Plugin Repository

Then I ran the build again

* What went wrong:
A problem occurred configuring root project 'application'.
> Could not resolve all artifacts for configuration ':classpath'.
   > Could not resolve gradle.plugin.com.google.gradle:osdetector-gradle-plugin:1.6.2.
     Required by:
         project : > com.google.osdetector:com.google.osdetector.gradle.plugin:1.6.2
      > Could not resolve gradle.plugin.com.google.gradle:osdetector-gradle-plugin:1.6.2.
         > Could not get resource 'https://plugins.gradle.org/m2/gradle/plugin/com/google/gradle/osdetector-gradle-plugin/1.6.2/osdetector-gradle-plugin-1.6.2.pom'.
            > Could not HEAD 'https://plugins.gradle.org/m2/gradle/plugin/com/google/gradle/osdetector-gradle-plugin/1.6.2/osdetector-gradle-plugin-1.6.2.pom'.
               > Received fatal alert: access_denied
   > Could not resolve com.google.gradle:osdetector-gradle-plugin:1.6.1.
     Required by:
         project : > org.openjfx.javafxplugin:org.openjfx.javafxplugin.gradle.plugin:0.0.8 > org.openjfx:javafx-plugin:0.0.8
      > Could not resolve com.google.gradle:osdetector-gradle-plugin:1.6.1.
         > Could not get resource 'https://plugins.gradle.org/m2/com/google/gradle/osdetector-gradle-plugin/1.6.1/osdetector-gradle-plugin-1.6.1.pom'.
            > Could not GET 'https://plugins.gradle.org/m2/com/google/gradle/osdetector-gradle-plugin/1.6.1/osdetector-gradle-plugin-1.6.1.pom'.
               > Received fatal alert: access_denied

Then I ran the build again, again, again. Not the same plugin it complains about.
Then lastly it works again. Until next time.

It is more a problem when used with --refresh-dependencies. One case: We have 3 build servers, all identical. When building gradle --refresh-dependencies build on number 3 we always get Received fatal alert: access_denied
Edit: The two build servers that worked used Gradle 5.0, while the one that got this problem was using Gradle 5.6.1

@DJViking @andreibam

There is a bug in some earlier versions of JDK 11 and 12 where the JDK was unable to support TLSv3. If possible I recommend making a minor JDK version bump to resolve this issue.

https://bugs.openjdk.java.net/browse/JDK-8213202

We will be disabling TLS1.3 support later today. We will most likely re-enable it permanently some time in January 2020.

We are using JDK 11.0.4+11. Could try to upgrade to 11.0.5

@JLLeitschuh
I did have the correct gradlePluginPortal config, I just rewrote everything instead of copy pasting. I apologize if that created vonfusion.

I ran with adoptopenjdk-openjdk11-jdk-11.0.2.9 in a docker container. There was no cache available.

I ran with debug, it looks like it was able to download at least one thing from gradle (and it had no problem talking to our local plugin repo)

I have attached two log snippets form the same build command. It happened to succeed downloading the kotlin plugin, but then failed on grgit. It has been inconcistent which plugin fails.

I can’t attach a log file, so here is a link to a git repo with the logs snippets for the aforementioned plugins: https://github.com/dgoetsch/gradle-errors

@dgoetsch @DJViking Updating to JDK 11.0.5 is known to resolve this issue.

@JLLeitschuh thx, I bumped to open jdk 11.0.2 and now it seems it uses by default TLSv1.2 and that works fine (it’s not trying with/sees TLSv1.3 - this i don’t know why :slight_smile: )

JVM:          11.0.2 (Oracle Corporation 11.0.2+9)
...
...
[DEBUG] [org.apache.http.conn.ssl.SSLConnectionSocketFactory] Enabled protocols: [TLSv1.2]