Stericson / RootTools

RootTools Library
1.6k stars 484 forks source link

Gradle repo #65

Closed dron247 closed 5 years ago

dron247 commented 7 years ago

Hi, could you maintain a repo for your releases? It's very handy to add it into project by single line of code compile 'org.stericson:roottools:4.2.0'

rahulkumar66 commented 6 years ago

@Stericson is there a repo for roottools for gradle yet?

BRoy98 commented 6 years ago

You can use jitpack.io package repository which can hosts any public git repo.

Add it to your root build.gradle at the end of repositories:

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

Then, for latest updates add this dependency

implementation 'com.github.Stericson:RootTools:-SNAPSHOT'

or mention any release

implementation 'com.github.Stericson:RootTools:5.0'

tibbi commented 6 years ago

This should definitely be sorted out if you want people to use the library. Together with adding a README with setup instructions.

MFlisar commented 5 years ago

This will work if you have added jitpack as source:

implementation 'com.github.Stericson:RootShell:1.6'
implementation ('com.github.Stericson:RootTools:5.0') {
    exclude group: 'com.github.Stericson'
}

RootTools 5.0 depends on RootShell 5.0 (like this pom file says: https://jitpack.io/com/github/Stericson/RootTools/5.0/RootTools-5.0.pom), so this dependency must be corrected manually as this repo is using the aar file directly and is not set up correctly for jitpack...

Stericson commented 5 years ago

Jitpack support added in latest commits