Android-Orma icon indicating copy to clipboard operation
Android-Orma copied to clipboard

Migrate from JCenter() to the mavenCentral()

Open rustam-baktybek opened this issue 2 years ago • 13 comments

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 avatar Oct 27 '22 07:10 rustam-baktybek

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

rustam-baktybek avatar Oct 27 '22 07:10 rustam-baktybek

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 !!

zoff99 avatar Oct 27 '22 08:10 zoff99

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

rustam-baktybek avatar Oct 27 '22 09:10 rustam-baktybek

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 avatar Oct 28 '22 05:10 gfx

I'll do it today or tomorrow.

gfx avatar Oct 28 '22 05:10 gfx

@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 avatar Oct 28 '22 05:10 rustam-baktybek

@gfx Thank you so much

rustam-baktybek avatar Oct 28 '22 05:10 rustam-baktybek

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

gfx avatar Oct 28 '22 05:10 gfx

@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.

zoff99 avatar Oct 28 '22 06:10 zoff99

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.

gfx avatar Oct 29 '22 14:10 gfx

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

zoff99 avatar Oct 29 '22 15:10 zoff99

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

gfx avatar Oct 31 '22 00:10 gfx

@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.

zoff99 avatar Oct 31 '22 08:10 zoff99