Skip to content

Commit

Permalink
chore(Android):增加upload_maven.sh 发布脚本
Browse files Browse the repository at this point in the history
  • Loading branch information
RealOnlyone committed Mar 15, 2023
1 parent 3ad2d11 commit 60ef6cd
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions android/upload_maven.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
#!/bin/bash

#定义颜色的变量
RED_COLOR="\033[1;31m" #
GREEN_COLOR="\033[1;32m" #绿
YELOW_COLOR="\033[1;33m" #
BLUE_COLOR="\033[1;34m" #
PINK="\033[1;35m" #粉红
RES="\033[0m"

#./gradlew checkUploadConfig4Maven || ! echo -e "${RED_COLOR}未通过打包的配置检测!!! ${RES}" || exit

./gradlew clean
#./gradlew assembleRelease

./gradlew :hummer-core:assembleRelease --stacktrace
./gradlew :hummer-sdk:assembleRelease --stacktrace
./gradlew :hummer-component:assembleRelease --stacktrace
./gradlew :hummer:assembleRelease --stacktrace
./gradlew :hummer-dev-tools:assembleRelease --stacktrace

#publish

./gradlew :hummer-core:publishReleasePublicationToMavenCentralRepository
./gradlew :hummer-sdk:publishReleasePublicationToMavenCentralRepository
./gradlew :hummer-component:publishReleasePublicationToMavenCentralRepository
./gradlew :hummer:publishReleasePublicationToMavenCentralRepository
./gradlew :hummer-dev-tools:publishReleasePublicationToMavenCentralRepository


echo -e "${GREEN_COLOR} 打包上传到MavenCenter()仓库完成!!! ${RES}"

0 comments on commit 60ef6cd

Please sign in to comment.