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

Migrate from JCenter() to the mavenCentral() #483

Open
rustam-baktybek opened this issue Oct 27, 2022 · 13 comments
Open

Migrate from JCenter() to the mavenCentral() #483

rustam-baktybek opened this issue Oct 27, 2022 · 13 comments

Comments

@rustam-baktybek
Copy link

rustam-baktybek commented Oct 27, 2022

Description

As of 10/26/222 the orma library was removed from Jcenter because it has not been updated in the last 2 years. (Maven Central repo also have a reference to the JCenter )

So , orma library could not be downloaded with gradle , we get timeout error

Solution

I found the solution how we can implement orma project with gradle

 repositories {
         jCenter() -> remove this line
        mavenCentral()
        gradlePluginPortal()
    }

Reference

https://jcenter.bintray.com/com/github/maskarade/android/orma/orma/6.0.2 -> Could not found

@rustam-baktybek
Copy link
Author

rustam-baktybek commented Oct 27, 2022

@gfx @k-kagurazaka
Could we resolve this issue ?

@zoff99
Copy link
Contributor

zoff99 commented Oct 27, 2022

i have saved the artefacts to jitpack. so until there is a better solution you can use:

!! ONLY use at your own risk !!

    implementation('com.github.zoff99:pkgs_maskaradeOrma-annotations:6.0.2') {
    }
    implementation('com.github.zoff99:pkgs_maskaradeOrma-core:6.0.2') {
        transitive = true
        exclude group: 'io.reactivex'
        exclude group: 'com.android.support'
    }
    implementation('com.github.zoff99:pkgs_maskaradeOrma-migration:6.0.2') {
        transitive = true
        exclude group: 'io.reactivex'
        exclude group: 'com.android.support'
    }
    implementation('com.github.zoff99:pkgs_maskaradeOrma:6.0.2') {
        transitive = true
        exclude group: 'io.reactivex'
        exclude group: 'com.android.support'
    }
    implementation('com.github.zoff99:pkgs_maskaradeOrma-encryption:6.0.2') {
        transitive = true
        exclude group: 'io.reactivex'
        exclude group: 'com.android.support'
    }

!! ONLY use at your own risk !!

@rustam-baktybek
Copy link
Author

@zoff99
With risk -> I do not like that , I would like to use stable solution)
Also I attached another approach which will work

@gfx
Copy link
Member

gfx commented Oct 28, 2022

Hi. I'm the original author of the library. I'm willing to re-publish it to somewhere else. Is Maven central the next de-fact standard registry for Android?

@gfx
Copy link
Member

gfx commented Oct 28, 2022

I'll do it today or tomorrow.

@rustam-baktybek
Copy link
Author

rustam-baktybek commented Oct 28, 2022

@gfx
Maven central recommended place
For example, almost all google libraries are in maven central but Repository can be in other place (see below image)
I guess if you prefer Maven Central as Repository also it will be good solution

Google stores its libraries in the Google repository and Maven central (see figure below).
https://mvnrepository.com/artifact/com.google.firebase/firebase-admin
https://mvnrepository.com/artifact/com.google.firebase

Screen Shot 2022-10-28 at 14 33 44

Screen Shot 2022-10-28 at 14 33 02

@rustam-baktybek
Copy link
Author

@gfx Thank you so much

@gfx
Copy link
Member

gfx commented Oct 28, 2022

@rustam-baktybek Thank you for the suggestions. Hope it gets better than I tried the last time (5 years ago or so).

@zoff99
Copy link
Contributor

zoff99 commented Oct 28, 2022

@gfx if maven central is still difficult, like it was, you can also use jitpack.
that is very easy to setup and also widely used. you can set it up in 10 min.

@gfx
Copy link
Member

gfx commented Oct 29, 2022

I tried to upgrade the build scripts, but it seems really hard. At least Android Studio cannot upgrade them. I'll take a look at the upgrade guide and give it a try again, but it would be appreciated if someone can upgrade them.

@zoff99
Copy link
Contributor

zoff99 commented Oct 29, 2022

for the time being i can help you setup jitpack, if you have the artefact binaries around.

@gfx
Copy link
Member

gfx commented Oct 31, 2022

Upgrading build scripts is too hard. Will build the project as is and upload it to Jitpack.

@zoff99
Copy link
Contributor

zoff99 commented Oct 31, 2022

@gfx you can copy my example:
https://github.com/zoff99/pkgs_maskaradeOrma-encryption

https://github.com/zoff99?tab=repositories&q=orma&type=&language=&sort=

as a blueprint if you want.

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

3 participants