For me the best way is:
https://jitpack.io
Step 1. Add the JitPack repository to build.gradle at the end of repositories:
repositories {
// ...
maven { url "https://jitpack.io" }
}
Step 2. Add the dependency in the form
dependencies {
implementation 'com.github.User:Repo:Tag'
}
It is possible to build the latest commit on the master branch, for example :
dependencies {
implementation 'com.github.jitpack:gradle-simple:master-SNAPSHOT'
}
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…