Sid Basmunge
Sid Basmunge

Reputation: 51

The jCenter & Bintray is Shutting Down. Now What? How to resolve that If third party library used?

The jCenter & Bintray is Shutting Down. So how we can resolve this and what will do if third party libraries are used in project.? Please help me out. Thanks in advance.

Upvotes: 4

Views: 6052

Answers (2)

reza rahmad
reza rahmad

Reputation: 1049

in april 2024 add this to your top gradle not in module and you can get all lib backup from jcenter

classpath 'com.intershop.gradle.repoconfig:repoconfig-gradle-plugin:3.3.3'

link to learn https://knowledge.intershop.com/kb/index.php/Display/309P31

Upvotes: 0

SocialSupaCrew
SocialSupaCrew

Reputation: 464

In all of your build.gradle files replace jcenter() by mavenCentral() (or just remove it if mavenCentral is already set).

If you still have a dependency that need jcenter() (with this type of error: Could not find com.jeroenmols:mylibrary:1.0.0.) you can restrict the usage of jCenter to only this dependency:

jcenter() {
    content {
        includeModule("com.jeroenmols", "mylibrary")
    }
}

JCenter will allow to download dependencies until February 1, 2022, so until then you can contact the developers of the missing library and ask them to migrate away from jCenter.

Source and more details

EDIT: JFrog updated his announce that they will keep jcenter as a read-only repository indefinitely. So you should be able to keep it as a reliable source for artifact if you still have dependencies from jCenter.

Upvotes: 10

Related Questions