RedMadRobot / input-mask-android

User input masking library repo.
MIT License
1.22k stars 116 forks source link

Migrate to Maven Central #112

Closed GuilhE closed 3 years ago

GuilhE commented 3 years ago

JFrog just announced that they'll be shutting down JCenter: https://jfrog.com/blog/into-the-sunset-bintray-jcenter-gocenter-and-chartcenter/

Key dates are:

Hence, input-mask-android should also be migrated to another maven repository like Maven central.

taflanidi commented 3 years ago

No shit.

GuilhE commented 3 years ago

This will also help.

taflanidi commented 3 years ago

More news

https://twitter.com/gradle/status/1357766534370893832?s=20

GuilhE commented 3 years ago

Another nice helping article: Migrating old artifacts from JCenter to MavenCentral

ildar2 commented 3 years ago

any updates? only one month left

xandr08 commented 3 years ago

Hi there! We want to remove jcenter() from our project. When are you planning to migrate to maven? Thanks for the library)

taflanidi commented 3 years ago

Hey.

The migration is in progress. I haven't had much time, unfortunately, but still I'd like to finish up this weekend.

ozbek commented 3 years ago

The migration is in progress. I haven't had much time, unfortunately, but still I'd like to finish up this weekend.

Migration to JitPack seems to require a lot less effort (in case this weekend is still not around:).

davidmigloz commented 3 years ago

@ozbek You can already use it in JitPack, it doesn't require any migration: https://jitpack.io/#RedMadRobot/input-mask-android

ozbek commented 3 years ago

That's right, albeit with a different group ID.

netmaxt3r commented 3 years ago

use below snippet in your toplevel build.gradle to substitute dependency to jitpack repo. In my case on react-native project I didnt want to patch the npm package

allprojects {
    repositories {
        maven {
            url 'https://jitpack.io'
        }
    }
    configurations.all {
        resolutionStrategy {
            dependencySubstitution {
                substitute module("com.redmadrobot:input-mask-android:6.0.0") using module('com.github.RedMadRobot:input-mask-android:6.0.0')
            }
        }
    }
}
carstenhag commented 3 years ago

Hello there, is there an update on this? Android Studio Arctiv Fox & AGP 7.0 just got released, so there's even more urgency to remove jCenter :)

patterueldev commented 3 years ago

Any recent updates? I'm trying to use this library called 'moko-widgets' (https://github.com/icerockdev/moko-widgets) And I'm here because I'm encountering issues about this library not being available on mavenCentral.

use below snippet in your toplevel build.gradle to substitute dependency to jitpack repo. In my case on react-native project I didnt want to patch the npm package

allprojects {
    repositories {
        maven {
            url 'https://jitpack.io'
        }
    }
    configurations.all {
        resolutionStrategy {
            dependencySubstitution {
                substitute module("com.redmadrobot:input-mask-android:6.0.0") using module('com.github.RedMadRobot:input-mask-android:6.0.0')
            }
        }
    }
}

For kotlin dsl people, I'm using this:

allprojects {
    repositories {
        google()
        mavenCentral()
        maven(url = "https://jitpack.io")
    }
    configurations.all {
        resolutionStrategy {
            dependencySubstitution {
                substitute(
                    module("com.redmadrobot:input-mask-android:6.0.0")
                ).using(module("com.github.RedMadRobot:input-mask-android:6.0.0"))
            }
        }
    }
}
sezginriggs commented 3 years ago

any recent updates? we had this problem: https://github.com/react-native-text-input-mask/react-native-text-input-mask/issues/252

taflanidi commented 3 years ago

Closing.

Please refer to the PSA.

ozbek commented 3 years ago

JitPack FTW!

s-fedosov commented 2 years ago

jitpack is down.