swagger-api / swagger-api/swagger-codegen-generators
JCenter no longer exists
Nobody has claimed this yet.
- Dominant language
- Mustache
- Stars
- 299
- Forks
- 439
- PR merge metrics
- No merged PRs in 30d
Description
Folks,
I encountered an issue building code generated by swagger-codegen-generators 3.0.35:
A problem occurred configuring root project 'swagger-java-client'.
Could not resolve all files for configuration ':classpath'.
Could not resolve com.android.tools.build:gradle:2.3.+.
Required by:
project :
> Failed to list versions for com.android.tools.build:gradle.
> Unable to load Maven meta-data from https://jcenter.bintray.com/com/android/tools/build/gradle/maven-metadata.xml.
> Could not GET 'https://jcenter.bintray.com/com/android/tools/build/gradle/maven-metadata.xml'.
> org.apache.http.client.ClientProtocolException (no error message)
The generated build.gradle file specifies the following:
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.3.+'
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.5'
}
}repositories {
jcenter()
}
It seems JCenter was taken offline on 31-Mar-2022
If I manually replace jcenter with mavenCentral, (and use Gradle 6.8.2) the build succeeds.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Locate the generator template that emits the shown build.gradle file and inspect how its repositories are configured. Verify the generated project can resolve its dependencies with the replacement repository and Gradle version described in the issue; done means generated builds no longer depend on JCenter.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, java
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100