maskarade/Android-Orma

Migrate from JCenter() to the mavenCentral()

rustam-baktybek opened this issue · 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

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

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
With risk -> I do not like that , I would like to use stable solution)
Also I attached another approach which will work

gfx commented

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 commented

I'll do it today or tomorrow.

@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

@gfx Thank you so much

gfx commented

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

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

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.

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

gfx commented

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