How to add library from github using gradle? I tried this and it didn't work. The library I want to use in my project is XLLoop . Here is a code from build.gradle
.
repositories {
mavenCentral()
}
dependencies {
compile 'com.github.poidasmith.xlloop:xlloop:0.3.+'
}
XXLoop isn't published as a Maven or Ivy artifact so it isn't directly available to Gradle's dependency management.
You would download the JARs for XXLoop and define dependencies for it's dependencies:
repositories {
mavenCentral()
}
dependencies {
files('libs/xxloop_0.3.jar')
compile 'something:xxloop-needs:0.1.2'
}
I've done this for a variety of things in production including the generated JARs for interacting with Salesforce or in-house libraries we don't have in an artifact repostory yet.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.