{LIBRARY_NAME} library built with gradle in aar format for usage with android gradle build system.
Maven repository on GitHub Pages
...
repositories {
maven { url "{GITHUB_URL}" }
...
}
dependencies {
compile '{ARTIFACT_ID}'
...
}
In your
build.gradle
includemaven{ url "{GITHUB_URL}" }
as repository priorior tomavenCentral()
Before you can get aar you should checkout submodule. Overall build process including build is straightforward:
$ git submodule update --init
...
$ ./gradlew build
...
When build is finished aar file will be located in build/libs
.
Maven artifact
$ ./gradlew -Dorg.gradle.project.repoDir="${HOME}/.m2/repository" uploadArchives
build.gradle
example
...
repositories {
mavenLocal()
...
}
dependencies {
compile '{ARTIFACT_ID}'
...
}