Skip to content
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

Migration from JCenter #239

Open
jakoss opened this issue Feb 8, 2021 · 16 comments
Open

Migration from JCenter #239

jakoss opened this issue Feb 8, 2021 · 16 comments
Assignees

Comments

@jakoss
Copy link

jakoss commented Feb 8, 2021

In may this library won't be available from JCenter: https://jfrog.com/blog/into-the-sunset-bintray-jcenter-gocenter-and-chartcenter/

Please migrate this library to some other repository

@ncapdevi ncapdevi self-assigned this Feb 8, 2021
@ncapdevi
Copy link
Owner

ncapdevi commented Feb 8, 2021

@jakoss Thanks for the reminder. Will do that soon.

@gildor
Copy link
Contributor

gildor commented Feb 25, 2021

@ncapdevi Any updates on this? Maybe you need help

@mehmetdelikaya
Copy link

Any updates?

@umarata
Copy link

umarata commented May 11, 2021

Hi @ncapdevi

I understand migration from jcenter() to mavenCentral() is time taking task and you may not have time for it.
But at least release the .aar file so we can put in project and use it till you not migrate the binary to some other source.

@vlazdra
Copy link

vlazdra commented May 11, 2021

@ncapdevi Any updates on this one?

@jtorrestobena
Copy link

For those having issues with JCenter() here's my temporary solution, replace version if needed

implementation 'com.github.ncapdevi:FragNav:3.2.0'

@jakoss
Copy link
Author

jakoss commented May 18, 2021

@jtorrestobena interesting, is github hosting gradle package automatically for repository?

@jtorrestobena
Copy link

Sorry forgot to mention you need jitpack for this:

See here: https://jitpack.io

@mehmetdelikaya
Copy link

@jtorrestobena that is a good idea 👍 Just forked the library and gonna use it on my own git based repo until the library is moved from jcenter

@VuHongKy
Copy link

VuHongKy commented Jun 6, 2021

@jakoss @ncapdevi With all due respect, I think that's kind of easy.
I published my repo by following this guide:
https://medium.com/@ome450901/publish-an-android-library-by-jitpack-a0342684cbd0
I'm sorry if I was wrong.

@jakoss
Copy link
Author

jakoss commented Jun 6, 2021

@jakoss @ncapdevi With all due respect, I think that's kind of easy.
I published my repo by following this guide:
https://medium.com/@ome450901/publish-an-android-library-by-jitpack-a0342684cbd0
I'm sorry if I was wrong.

Not sure why are addressing this to me, but difficulty isn't really an issue. It's main contributor time. But it's not that important now, since jfrog announced that repositories will be hosted as read only indefinitely.

@VuHongKy
Copy link

VuHongKy commented Jun 6, 2021

@jakoss Thank you!

@gildor
Copy link
Contributor

gildor commented Apr 5, 2022

But it's not that important now

it's still important. Jcenter is unreliable, it had multiple big outages recently. Many projects do not allow jcenter() repository and jcenter dependencies.
In our case we re-published lib to our own private repo to get rid of jcenter

Also suggested publishing to jitpack is also not an option for many projects because of it not-secure nature and slow performance.

The library should be published to maven central

@mehmetdelikaya
Copy link

Hi @gildor, I would recommend you to fork the library and use it from your own repo, something like this,

implementation 'com.github._yourgithubname_:FragNav:3.2.0'

@gildor
Copy link
Contributor

gildor commented Apr 6, 2022

This is what we are already doing, as I said in my previous message

@gildor
Copy link
Contributor

gildor commented Apr 6, 2022

For anyone who wants to re-publish this library to your own repository, you can refer to this PR which includes changes to allow propagate start/pause lifecycle events on show/hide of fragment, but also on the same PR we updated publishing config to be compatible with recent Gradle and Android Gradle Plugin.
To publish to own repo, just change version/group in build.gradle and set gradle properties:
publishRepoUrl
publishRepoUsername
publishRepoPassword

Like:

./gradlew publish -PpublishRepoUrl=URL -PpublishRepoUsername=USERNAME -PpublishRepoPassword=PASSWORD

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants