https://github.com/blundell/release-android-library
Remote script to create a maven compatible release of an android library (aar)
https://github.com/blundell/release-android-library
Last synced: about 1 year ago
JSON representation
Remote script to create a maven compatible release of an android library (aar)
- Host: GitHub
- URL: https://github.com/blundell/release-android-library
- Owner: blundell
- License: apache-2.0
- Created: 2014-08-10T17:31:24.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2023-05-16T13:46:44.000Z (about 3 years ago)
- Last Synced: 2025-04-09T22:54:06.216Z (about 1 year ago)
- Size: 18.6 KB
- Stars: 141
- Watchers: 7
- Forks: 51
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-android-ui - https://github.com/blundell/release-android-library
README
release-android-library
=======================
## 🚨 Deprecated 🚨
This script is deprecated in favour of: [novoda/bintray-release](https://github.com/novoda/bintray-release)
-----
Remote script to create a maven compatible release of an android library (aar). This release comes in a zip or exploded form and is only created locally inside your own build folder. You can these use these files to release to JCenter or Maven Central.
Matching blog post here: [http://blog.blundellapps.co.uk/locally-release-an-android-library-for-jcenter-or-maven-central-inclusion/](http://blog.blundellapps.co.uk/locally-release-an-android-library-for-jcenter-or-maven-central-inclusion/)
#### adding to your library
```
apply plugin: 'com.android.library'
ext {
PUBLISH_GROUP_ID = 'com.blundell'
PUBLISH_ARTIFACT_ID = 'example-library-name'
PUBLISH_VERSION = '1.0.0'
}
android {
// configs, flavors etc
}
dependencies {
// dependencies
}
// Copy the file locally and use
apply from: 'android-release-aar.gradle'
// or use the remote copy to keep update with latest changes
apply from: 'https://raw.githubusercontent.com/blundell/release-android-library/master/android-release-aar.gradle'
```
#### useage
`./gradlew clean build generateRelease`
#### example output
```
:engine:zipRelease
:engine:generateRelease
Release 1.0.0 can be found at /Users/Blundell/Developer/git_repo/ExampleAndroidLibrary/build/release/1.0.0/
Release 1.0.0 zipped can be found /Users/Blundell/Developer/git_repo/ExampleAndroidLibrary/build/release-1.0.0.zip
BUILD SUCCESSFUL
Total time: 23.609 secs
```