From f329f6e51bc4f9afc2e009afc216a7d73889fa86 Mon Sep 17 00:00:00 2001 From: Zihe Jia Date: Fri, 6 Sep 2024 14:30:15 -0700 Subject: [PATCH] update the release script --- maven.gradle | 6 +----- release.sh | 4 ++-- 2 files changed, 3 insertions(+), 7 deletions(-) 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