diff --git a/maven.gradle b/maven.gradle index 17069041..0dc37ae6 100644 --- a/maven.gradle +++ b/maven.gradle @@ -183,10 +183,6 @@ tasks.register("androidSourcesJar", Jar) { } tasks.register('install') { - dependsOn 'build', 'androidJavadocsJar', 'androidSourcesJar', 'publishToMavenLocal' -} - -tasks.register('installDebug') { dependsOn 'build', 'androidJavadocsJar', 'androidSourcesJar', 'publishDebugPublicationToMavenLocal' } @@ -195,7 +191,7 @@ tasks.named('publishDebugPublicationToMavenLocal') { } tasks.named('signReleasePublication') { - dependsOn 'androidJavadocsJar', 'androidSourcesJar', 'bundleReleaseAar' + dependsOn 'build', 'androidJavadocsJar', 'androidSourcesJar', 'bundleReleaseAar' } def isReleaseBuild() { diff --git a/release.sh b/release.sh index 3bf65a03..3964025b 100755 --- a/release.sh +++ b/release.sh @@ -123,8 +123,8 @@ cleanUp # upload library to maven printf "\n\n${YELLOW}Uploading archives...${NC}\n" -if ! ./gradlew publish ; then - printf "${RED}Err.. Seems there was a problem runing ./gradlew publish\n${NC}" +if ! ./gradlew signReleasePublication ; then + printf "${RED}Err.. Seems there was a problem runing ./gradlew signReleasePublication\n${NC}" abort fi