Build any android library project with android gradle for usage with android gradle build system. Publish artifacts on GitHub Pages.
For example we use SlidingMenu library
- Repository name: SlidingMenu-aar
- Description: SlidingMenu library built with gradle in aar format for usage with android gradle build system
$ wget --no-check-certificate -O - https://raw.github.com/minakov/aar-quickstart/master/clone.sh | bash
$ mv aar-quickstart SlidingMenu-aar
$ cd SlidingMenu-aar
$ git submodule add https://github.com/jfeinstein10/SlidingMenu.git
android {
...
sourceSets {
main {
manifest.srcFile 'SlidingMenu/library/AndroidManifest.xml'
java.srcDirs = ['SlidingMenu/library/src']
res.srcDirs = ['SlidingMenu/library/res']
}
}
}
dependencies {
compile 'com.android.support:support-v4:+'
}
group = 'com.jeremyfeinstein.slidingmenu'
version = '1.3'
def artifactId = 'library'
See
groupId
artifactId
andversion
inpom.xml
- {LIBRARY_NAME} SlidingMenu
- {GITHUB_URL} http://minakov.github.io/SlidingMenu-aar
- {ARTIFACT_ID} com.jeremyfeinstein.slidingmenu:library:1.3@aar
See
groupId
artifactId
andversion
inpom.xml
$ git add .
$ git commit -m "init commit"
$ git remote add origin https://github.com/minakov/SlidingMenu-aar.git
$ git push origin master
$ cd ..
$ rm -rf SlidingMenu-aar
$ git clone https://github.com/minakov/SlidingMenu-aar.git
$ cd SlidingMenu-aar
$ git submodule update --init
$ ./build-gh-pages.sh
$ cd ..
$ rm -rf SlidingMenu-aar
- https://github.com/mente/facebook-api-android-aar
- https://github.com/square/spoon
- http://blog.kaltepoth.de/posts/2010/09/06/github-maven-repositories.html
- http://jedicoder.blogspot.com/2011/11/automated-gradle-project-deployment-to.html
Copyright 2013 Vladimir Minakov
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.