Skip to content

Commit

Permalink
update the release script
Browse files Browse the repository at this point in the history
  • Loading branch information
zihejia committed Sep 6, 2024
1 parent 97fef98 commit f329f6e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
6 changes: 1 addition & 5 deletions maven.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -183,10 +183,6 @@ tasks.register("androidSourcesJar", Jar) {
}

tasks.register('install') {
dependsOn 'build', 'androidJavadocsJar', 'androidSourcesJar', 'publishToMavenLocal'
}

tasks.register('installDebug') {
dependsOn 'build', 'androidJavadocsJar', 'androidSourcesJar', 'publishDebugPublicationToMavenLocal'
}

Expand All @@ -195,7 +191,7 @@ tasks.named('publishDebugPublicationToMavenLocal') {
}

tasks.named('signReleasePublication') {
dependsOn 'androidJavadocsJar', 'androidSourcesJar', 'bundleReleaseAar'
dependsOn 'build', 'androidJavadocsJar', 'androidSourcesJar', 'bundleReleaseAar'
}

def isReleaseBuild() {
Expand Down
4 changes: 2 additions & 2 deletions release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit f329f6e

Please sign in to comment.