Utilities to upload libraries quickly to maven repository in Bintray.
- Add bintray username (
bintray.user
) and API key (bintray.apikey
) in thelocal.properties
file. - Add these in the top-level
build.gradle
file -classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.4'
andclasspath 'com.github.dcendents:android-maven-gradle-plugin:1.4.1'
- Add these in the library
build.gradle
file -apply from: 'https://raw.githubusercontent.com/aritraroy/LibUtils/master/install.gradle'
andapply from: 'https://raw.githubusercontent.com/aritraroy/LibUtils/master/upload.gradle'
- Add this in your library
build.gradle
file
ext {
bintrayRepo = 'maven'
bintrayName = 'bintray-project-name'
publishedGroupId = 'com.aritraroy.lib'
libraryName = 'library'
artifact = 'library'
libraryDescription = 'Description of the library'
siteUrl = 'https://github.com/aritraroy/library'
gitUrl = 'https://github.com/aritraroy/library.git'
libraryVersion = '1.0.0'
developerId = 'aritraroy'
developerName = 'Aritra Roy'
developerEmail = '[email protected]'
licenseName = 'The Apache Software License, Version 2.0'
licenseUrl = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
allLicenses = ["Apache-2.0"]
}
- Gradle tasks to run - .
/gradlew install
and./gradlew bintrayUpload