Upload repository / Android library to jitpack.io via github

REFERENCE LINK

https://medium.com/@ome450901/publish-an-android-library-by-jitpack-a0342684cbd0

1) In the project

buildscript {
dependencies {
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1' // Add this line


2) In the library gradle

apply plugin: 'com.github.dcendents.android-maven'

group='com.github.YourUsername'

3)in the android studio console project path

./gradlew install

git tag 1.0
git push --tags

4) go to your github account , your project and go to releases and create a new one with the same tag you push before

5) go to https://jitpack.io/ search your github path Fespuna/AndroidEasyRate and choose your version in this case 1.0

6) use your repository / library in any project using the methods below

IMPORTANT PUT THIS LINES ON ALLPROJECTS INSIDE THRE PROJECT GRADLE

allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}

dependencies {
implementation 'com.github.Fespuna:AndroidEasyRate:1.0'
}

followed tutorial:
https://medium.com/@ome450901/publish-an-android-library-by-jitpack-a0342684cbd0