From 8afffc0c8e07ddc0959fdd0ede8e46ee1e4bc769 Mon Sep 17 00:00:00 2001 From: Diego Lassa Date: Sat, 12 Sep 2020 17:43:32 -0300 Subject: [PATCH] Update gradle-mvn-push.gradle -Changed "VERSION_NAME.contains("SNAPSHOT") == false" to "!VERSION_NAME.contains("SNAPSHOT")" -Updated the deprecated classifier to the archiveClassifier ( archiveClassifier.set("javadoc") and archiveClassifier.set("sources") ) --- gradle-mvn-push.gradle | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gradle-mvn-push.gradle b/gradle-mvn-push.gradle index c594747..41f39b1 100644 --- a/gradle-mvn-push.gradle +++ b/gradle-mvn-push.gradle @@ -21,7 +21,7 @@ version = VERSION_NAME group = GROUP def isReleaseBuild() { - return VERSION_NAME.contains("SNAPSHOT") == false + return !VERSION_NAME.contains("SNAPSHOT") } def getReleaseRepositoryUrl() { @@ -96,12 +96,12 @@ afterEvaluate { project -> } task androidJavadocsJar(type: Jar, dependsOn: androidJavadocs) { - classifier = 'javadoc' + archiveClassifier.set("javadoc") from androidJavadocs.destinationDir } task androidSourcesJar(type: Jar) { - classifier = 'sources' + archiveClassifier.set("sources") from android.sourceSets.main.java.source } }