-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Please publish to maven central or maven.google.com #566
Comments
This has taken on some more immediacy due to the imminent shutdown of jcenter: https://jfrog.com/blog/into-the-sunset-bintray-jcenter-gocenter-and-chartcenter/ |
👍 +1 to this one, please make this a priority. |
I'll upload it to either google maven or maven central. |
"JCenter repository will keep serving packages for 12 months until February 1st 2022" just as an update |
@thagikura Any updates? I vote to publish it to google maven, it already includes most of com.google.android artifacts, it's easier to apply exclusiveContent for google repository |
Although it's not due to be properly disabled until 2022, JCenter has had numerous problems over the last few days and is currently serving me 403s right now, with further planned brownouts scheduled for April, so the sooner this can happen the better. |
As our project already was using jitpack, I removed jcenter by fetching flexbox from jitpack instead, Update: Went to use ConstraintLayout's Flow using this approach https://stackoverflow.com/a/61545990 eventually, not ideal yet one less outdated dependency anyway. |
Another option is the repository "https://dl.bintray.com/google/flexbox-layout/".
[Update] |
Bintray is going away just like JCenter. |
I'm not sure if I understand you correctly, but how is that another option when Bintray gets shutdown? Ah sorry, @robpridham-bcc was faster haha. |
Is there any update please? :-) It's been two months now. |
There is a really good tool https://github.com/martinbonnin/vespene to migrate multiple artifacts from jcenter to maven central. |
UPDATE 4/27/2021: We listened to the community and will keep JCenter as a read-only repository indefinitely. Our customers and the community can continue to rely on JCenter as a reliable mirror for Java packages. |
I believe existing JCenter artifacts still can't be updated, so this issue will still need to be addressed before the next release. Ideally sooner - I've lost trust in JFrog and this is the only dependency I still need on JCenter. |
My team is trying to remove jcenter() and this library still not available on mavenCentral() or even google() |
any updates? |
Sorry for the delayed response. I'm still discussing which option works better (gmaven or mavenCentral) and I plan to decide it and upload it soon after I/O. |
I know putting the library in androidx is quite troublesome but this lib kind of belongs in androidx imo. |
We decided to upload the artifacts to google maven for better reliability in the future. But due to the restriction of how google maven hosts artifacts, the groupId of this library needs to be changed from Given that the artifacts on JCenter exist indefinitely and we can't change the groupId for the past versions, I'm going to update the version of this library as 3.0.0, which has the same code as 2.0.1 (the latest version as of now) except for the change of the groupId. And upload the artifacts to google maven for the 3.0.0 version and onward. FYI @yaraki |
I have uploaded the artifact at https://maven.google.com/web/index.html?q=flexbox#com.google.android.flexbox:flexbox:3.0.0 It should be available by the following declaration.
We'll make future releases on the google maven. |
@thagikura Since the release version 3.0.0 is still not mentioned here, i cannot really follow if is just the latest version 2.0.1 being renamed to 3.0.0, or a new release. can you please provide more information in this regard? |
@mohand1993 thanks for pointing that out. I mentioned the 3.0.0 release. And it's a new release, but as I commented previously the functionalities are exactly same as 2.0.1. The only change was the groupId from Older versions are not migrated to google maven as it conflicts with the old artifacts on JCenter because we can't change the groupId for the past versions. |
It's also not that necessary as bintray said they'll keep the repo up forever |
3.0.0 release depends on old |
This Does your project force an old version? |
@AlanChiou sorry, my bad, I removed jcenter from gradle properties but forgot to add mavenCentral |
@thagikura thanks for that! One question for anyone who knows a bit more about Gradle: is it possible to use this new version in a transitive dependency? I'm using this time that Yarn has this thing called resolutions which allows specifying the version which transitive dependencies may be fetched. I was wondering if something like this was also achievable in Gradle. I know the right way would be to update |
@lucis AFAIK, Gradle would pick a newer version if you just specify it as a direct dependency. But due to group id change you'll probably need to exclude an old one:
|
I haven't thought super hard about whether this is what you need, but there is Perhaps:
A pet hate is Gradle snippets with no context about where they belong, so this lives in the top level Also raise it with the Intercom devs if this still exists in the latest build, as everyone industry-wide wants off JCenter. Edit: actually I forgot about the group ID change as @gmk57 pointed out, so the above probably won't work. It is generally useful though so leaving it for posterity. |
Thanks @gmk57 and @robpridham-bbc. Indeed, because of the groupId change, those solutions wouldn't work. I'm trying using a different feature from Gradle on
I still have some other |
I just ran into this issue recently. I had been using flexbox 1.1.1, but bintray is throwing errors and seems totally broken at the moment. (My first assumption had been that the build issues might have been related to log4shell, but I found it was jcenter when I took a closer look today.) I tried moving the app to 3.0.0, which compiled fine, but my app is now crashing. Is there any specific guide from migrating off of 1.1.x to 3.0.0? I also had to update paperdb due to jcenter issues, so the crashes might not be on the flexbox side; I haven't had a chance to capture any stack traces yet. That said, the paperdb migration seems to primarily affect the group ID, while flexbox has more significant changes with the major version bump due to mentioned risk of breaking changes, so that's where I'm focusing at the moment. |
Currently, flexbox-layout releases appear to only be published to jcenter and are not present on maven central. JCenter has a long history of artifact integrity issues and we try to avoid it at all costs. I recognize that maven central's publishing process is sometimes considered more tedious, but this signing/verification process is part of why it's preferred.
https://blog.autsoft.hu/a-confusing-dependency
https://twitter.com/jakewharton/status/1073102730443526144?lang=en
The text was updated successfully, but these errors were encountered: