-
-
Notifications
You must be signed in to change notification settings - Fork 6.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JCenter goes into read-only state after March 31st 2021 (new artifacts will not be accepted) #10906
Comments
Update: it seems that JetBrains will move
|
@greyson-signal @greysonp and others: I hope you don't mind that I took the liberty to work on this😃 (some draft PR will land asap). |
Draft PR is created. Gradle build execution command Note: I also created issues for other libraries that were published exclusively to a JCenter:
|
Just to sum this up:
In case that maintainers do not respond (for whatever reason... time flies and priorities change) I opt to add missing libraries to a flat-directory also. All-in-all... it seems that we will have a fully baked solution soon 🚀 FYI @signalapp |
JetBrains people just provided some updates (for https://youtrack.jetbrains.com/issue/IDEA-261387) and it turns out they already released Related Android Studio ticket: https://issuetracker.google.com/issues/179291081 com.android.tools:sdk-common needs to update its dependency on trove4j |
Just pushed another commit to a draft PR. I just tested is it possible to refresh Gradle dependencies against different Android Studio versions (i.e. against
➡️ SECOND UPDATE ⏩ #10906 (comment) |
Note: I presume that all comments above are justifying rationale, so I will continue to use PR for a code related comments: |
Just to update my findings from above: it seems that Android Studio version has nothing to do with projects not being able to refresh it self (after JCenter is removed as a repository, that is). I posted my findings to a Android Studio ticket also: https://issuetracker.google.com/issues/179291081 After some digging it turns out that:
Root cause for refresh issues lays in the fact that All-in-all there are four solutions for this:
|
One more update 😩: it turns out that that we (both original Android Studio ticket reporter and me) were using a same Kotlin version (1.4.21) but with a completely different results: https://issuetracker.google.com/issues/179291081#comment6 So... at the moment we can only be sure that root cause is somewhere in between of Kotlin version and Android Gradle plugin version (and maybe even Gradle version has something to do with this ?) I guess it is time for me to take a break and let two teams Kotlin (JetBrains) and Android Studio (Google) to pick this up (I will continue to work on this at some point, of course). |
I think I finally got it !
I will prepare POC for both cases.... And some great news: nice people from JetBrains will publish |
Now, this was a corner case that tricked me into beliving that Kotlin-powered projects are fine:
You will find out that build is able to fetch not one, but two trove4j versions:
What a ride 😄 |
I will just provide a quick POC using two Android projects, one for Kotlin and another for Java):
Keep in mind that only two things were changed across both projects: Results are the same for both Java and Kotlin (1.3/1.4) projects:
All in all: one of my previous comments was on point (that one with a fancy table here: #10906 (comment)) but after I bumped into that corner case things started to look strange... No more long comments then... I think I will take a back seat now for a while 😃 |
And just to recap (for all watchers out there): don't worry if you can't refresh your projects after removing |
Latest development: JFrog partially reversed their decision: they decided to serve artifacts via JCenter until February 1st 2022 (but they will stop receiving new artifacts after March 31st 2021). https://www.infoq.com/news/2021/02/jfrog-jcenter-bintray-closure
|
Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward? This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
Before everything else: I can help and I will help.
External links:
Quote (JFrog original blog post, published on February 3rd, 2021):
It seems that this build depends on a 'com.amulyakhare.textdrawable' plugin that is hosted on a Bintray: https://github.com/signalapp/Signal-Android/blob/v5.3.12/app/build.gradle#L37
What can be done:
Note: I will expand on this asap.
➡️ UPDATE: JFrog partially reversed their decision on February 8th, 2021: #10906 (comment)
Title changed from
[Important] some dependecies are missing from a Maven Central (and JCenter sunset is announced for a May 1st 2021)
toJCenter goes into read-only state after March 31st 2021 (new artifacts will not be accepted)
The text was updated successfully, but these errors were encountered: