Open maksimkurb opened 3 years ago
+1
The problem was fixed by JFrog, they have updated their certs.
The issue has resurfaced, and with JCenter looking to go permanently offline there needs to be a better solution than assuming they will update their certs.
Relevant build output
> Could not resolve com.fasterxml.jackson.datatype:jackson-datatype-joda:2.12.5.
Required by:
project : > org.openapitools:openapi-generator-gradle-plugin:5.3.1 > org.openapitools:openapi-generator:5.3.1 > com.fasterxml.jackson.datatype:jackson-datatype-guava:2.12.5 > com.fasterxml.jackson:jackson-bom:2.12.5
> Could not resolve com.fasterxml.jackson.datatype:jackson-datatype-joda:2.12.5.
> Could not get resource 'https://plugins.gradle.org/m2/com/fasterxml/jackson/datatype/jackson-datatype-joda/2.12.5/jackson-datatype-joda-2.12.5.module'.
> Could not GET 'https://jcenter.bintray.com/com/fasterxml/jackson/datatype/jackson-datatype-joda/2.12.5/jackson-datatype-joda-2.12.5.module'. Received status code 502 from server: Bad Gateway
Suggest a fix: Remove all references to jcenter repository in openapi-generator build files
+1
Thanks for informing us about this. I wonder if you guys have time to file a PR to update the mustache templates to remove any reference to jcenter?
Bug Report Checklist
Description
The certificate of jCenter is outdated as per 2021-11-09. This leads to building error:
org.openapitools:openapi-generator-gradle-plugin:5.3.0
should be published to another repo, perhaps Maven Central, you can follow JCenter shutdown impact on Gradle builds article for more info.openapi-generator version
5.3.0
OpenAPI declaration file content or url
not applicable
Generation Details
Steps to reproduce
id 'org.openapi.generator' version '5.3.0'
Related issues/PRs
Related issue in Kotlin gradle plugin: https://youtrack.jetbrains.com/issue/KT-49621
Suggest a fix
Publish
org.openapitools:openapi-generator-gradle-plugin
to Maven Central instead of jCenterTemporary fix
I've found a temporary fix, you can add this snippet at the very top of your settings.gradle file: