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") } }