From 6d4b8e533089ab315a6970dbbb86a6c811acf30f Mon Sep 17 00:00:00 2001 From: Manas Chaudhari Date: Fri, 29 Jul 2016 11:19:59 +0530 Subject: [PATCH] Add bintray plugin for publishing --- android-mvvm/build.gradle | 2 ++ build.gradle | 2 ++ gradle/bintray-push.gradle | 27 +++++++++++++++++++++++++++ 3 files changed, 31 insertions(+) create mode 100644 gradle/bintray-push.gradle diff --git a/android-mvvm/build.gradle b/android-mvvm/build.gradle index 62bcd37..131e81d 100644 --- a/android-mvvm/build.gradle +++ b/android-mvvm/build.gradle @@ -68,3 +68,5 @@ dependencies { compile 'com.android.support:recyclerview-v7:24.0.0' compile 'com.android.support:appcompat-v7:24.0.0' } + +apply from: rootProject.file('gradle/bintray-push.gradle') \ No newline at end of file diff --git a/build.gradle b/build.gradle index 03bced9..9ca9021 100644 --- a/build.gradle +++ b/build.gradle @@ -6,6 +6,8 @@ buildscript { } dependencies { classpath 'com.android.tools.build:gradle:2.1.0' + classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.4' + classpath 'com.github.dcendents:android-maven-gradle-plugin:1.3' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files diff --git a/gradle/bintray-push.gradle b/gradle/bintray-push.gradle new file mode 100644 index 0000000..df1d7b1 --- /dev/null +++ b/gradle/bintray-push.gradle @@ -0,0 +1,27 @@ + +ext { + bintrayRepo = 'maven' + bintrayName = 'android-mvvm' + + publishedGroupId = 'com.manaschaudhari' + libraryName = 'Android MVVM' + artifact = 'android-mvvm' + + libraryDescription = 'Tools for implementing MVVM on Android' + + siteUrl = 'https://github.com/manas-chaudhari/android-mvvm' + gitUrl = 'https://github.com/manas-chaudhari/android-mvvm.git' + + libraryVersion = '0.1.0' + + developerId = 'manas-chaudhari' + developerName = 'Manas Chaudhari' + developerEmail = 'chaudhari.manas@gmail.com' + + licenseName = 'The Apache Software License, Version 2.0' + licenseUrl = 'http://www.apache.org/licenses/LICENSE-2.0.txt' + allLicenses = ["Apache-2.0"] +} + +apply from: 'https://raw.githubusercontent.com/nuuneoi/JCenter/master/installv1.gradle' +apply from: 'https://raw.githubusercontent.com/nuuneoi/JCenter/master/bintrayv1.gradle' \ No newline at end of file