Download older artifacts from Jcenter

Vikram Bhati
2 min readApr 8, 2021
Bintray Jcenter :(

As we all aware of the popular repository Jcenter is deprecating and even its dashboard will be disabled on May 1st, 2021. So we need to migrate all the artifacts on different repositories preferably maven central very soon. If you have not set up your maven central repository till now, it's better to store all the older artifacts from Jcenter so that you will able to upload them in maven central once the account/setup is ready.

I had the same issue that my maven central setup was taking more time, and thought that I should download all the artifacts from Jcenter before the deadline. But in my project, we had around 10 libraries which we have distributed to various clients for the last 7–8 years. And it was difficult to download all the artifacts manually with the correct version and hierarchy. So, I have written a simple script that you can use to download all the artifacts from the Jcenter. Check below -

How does it work?
As we know that internally all the modules and artifacts build a graph structure only. So in this script, we are starting from the root and traversing all the nodes until we reach the leaf nodes.

That’s it, guys. Let me know if you have concerns. Please upvote if this saved your time and efforts. 😊

--

--