From 8c65f57ea75218192dba1cf868dcb354523d0f50 Mon Sep 17 00:00:00 2001 From: Mike Penz Date: Wed, 6 Jun 2018 12:37:46 +0200 Subject: [PATCH] * further improvements * need to wait for: https://github.com/bintray/gradle-bintray-plugin/issues/234 to get resolved --- gradle-release.gradle | 7 ++++++- library-core/build.gradle | 4 ++-- library-extensions-expandable/build.gradle | 4 ++-- library-extensions/build.gradle | 4 ++-- library/build.gradle | 4 ++-- 5 files changed, 14 insertions(+), 9 deletions(-) diff --git a/gradle-release.gradle b/gradle-release.gradle index 61909227d..f02d6aaa1 100644 --- a/gradle-release.gradle +++ b/gradle-release.gradle @@ -60,16 +60,21 @@ bintray { publications('release') configurations = ['archives'] + pkg { + publish = true + repo = "maven" // it is the name that appears in bintray when logged name = POM_ARTIFACT_ID websiteUrl = POM_URL vcsUrl = POM_SCM_URL + publicDownloadNumbers = true licenses = ["Apache-2.0"] - publish = true version { name = VERSION_NAME + vcsTag = VERSION_NAME + released = new Date() mavenCentralSync { sync = false diff --git a/library-core/build.gradle b/library-core/build.gradle index c9ebc3c25..49c4a99e4 100644 --- a/library-core/build.gradle +++ b/library-core/build.gradle @@ -1,6 +1,6 @@ apply plugin: 'com.android.library' -def releaseVersion = release.versionName +version release.versionName android { compileSdkVersion setup.compileSdk @@ -44,7 +44,7 @@ if (project.hasProperty('pushall') || project.hasProperty('librarycoreonly')) { release(MavenPublication) { groupId 'com.mikepenz' artifactId 'fastadapter' - version releaseVersion + version this.version artifact("$buildDir/outputs/aar/${project.getName()}-release.aar") } } diff --git a/library-extensions-expandable/build.gradle b/library-extensions-expandable/build.gradle index 73dab4bbd..20925bb20 100644 --- a/library-extensions-expandable/build.gradle +++ b/library-extensions-expandable/build.gradle @@ -1,6 +1,6 @@ apply plugin: 'com.android.library' -def releaseVersion = release.versionName +version release.versionName android { compileSdkVersion setup.compileSdk @@ -58,7 +58,7 @@ if (project.hasProperty('pushall') || project.hasProperty('libraryextensiononly' release(MavenPublication) { groupId 'com.mikepenz' artifactId 'fastadapter-extensions-expandable' - version releaseVersion + version this.version artifact("$buildDir/outputs/aar/${project.getName()}-release.aar") } } diff --git a/library-extensions/build.gradle b/library-extensions/build.gradle index 5774a80f7..3464d8c67 100644 --- a/library-extensions/build.gradle +++ b/library-extensions/build.gradle @@ -1,6 +1,6 @@ apply plugin: 'com.android.library' -def releaseVersion = release.versionName +version release.versionName android { compileSdkVersion setup.compileSdk @@ -47,7 +47,7 @@ if (project.hasProperty('pushall') || project.hasProperty('libraryextensiononly' release(MavenPublication) { groupId 'com.mikepenz' artifactId 'fastadapter-extensions' - version releaseVersion + version this.version artifact("$buildDir/outputs/aar/${project.getName()}-release.aar") } } diff --git a/library/build.gradle b/library/build.gradle index 4165b8eed..084efface 100644 --- a/library/build.gradle +++ b/library/build.gradle @@ -1,6 +1,6 @@ apply plugin: 'com.android.library' -def releaseVersion = release.versionName +version release.versionName android { compileSdkVersion setup.compileSdk @@ -55,7 +55,7 @@ if (project.hasProperty('pushall') || project.hasProperty('librarycommonsonly')) release(MavenPublication) { groupId 'com.mikepenz' artifactId 'fastadapter-commons' - version releaseVersion + version this.version artifact("$buildDir/outputs/aar/${project.getName()}-release.aar") } }