Publish your android/java libraries to bintray.
- Add official bintray plugin.
buildscript { repositories { google() jcenter() } dependencies { classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.4' classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1' } }
- Config secret info in
local.properties.
Note: this file shouldn't be included in vcs.
BINTRAY_USER=your bintray account
BINTRAY_API_KEY=your bintray api key
- Config library info in
build.gradleof the library.
- Example ext for Ophelia library.
ext{ bintrayRepo = "Ophelia" bintrayName = "com.ahmetkilic.ophelia" libraryName = "ophelia" publishedGroupId = "com.ahmetkilic.ophelia" artifact = "ophelia" libraryVersion = "1.0.2" libraryDescription = "Ophelia framework for android." siteUrl = "https://github.com/ahmet12/ophelia" gitUrl = "https://github.com/ahmet12/ophelia.git" developerId = "ahmetkilic" developerName = "Ahmet Kılıç" developerEmail = "[email protected]" licenseName = "The Apache Software License, Version 2.0" licenseUrl = "https://www.apache.org/licenses/LICENSE-2.0" allLicenses = ["Apache-2.0"] }
- apply script from remote.
apply from: 'https://raw.githubusercontent.com/ahmet12/gradle-bintray-plugin/master/publishing.gradle'
gradlew clean build
gradlew install
gradlew bintrayUpload
./gradlew clean build
./gradlew install
./gradlew bintrayUpload