From d1805aeac13cd5ef1f7a013cbcf5c5ee5794534c Mon Sep 17 00:00:00 2001 From: Piasy Date: Wed, 11 Dec 2024 22:42:51 +0800 Subject: [PATCH] update publish scripts --- README.md | 14 +++++++++++++- scripts/publish_linux.sh | 5 ++++- scripts/publish_windows.bat | 5 ++++- 3 files changed, 21 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 48a7060..b9c52e6 100644 --- a/README.md +++ b/README.md @@ -162,10 +162,22 @@ Then check reports in `kmp-xlog/build/reports/tests/testDebugUnitTest`. ### Publish +Maven central portal credentials and signing configs are set in `~/.gradle/gradle.properties`. + +#### Maven publish + +```bash +# on Windows: need manual release on website +.\script\publish_windows.bat +# on Linux: need manual release on website +./script/publish_linux.sh +# on macOS: no manual release needed +./script/publish_others.sh +``` + #### iOS/macOS cocoapods ```bash -brew install xcodegen ./build_apple.sh ./publish_apple_cocoapods.sh ``` diff --git a/scripts/publish_linux.sh b/scripts/publish_linux.sh index c09000f..08bd8de 100755 --- a/scripts/publish_linux.sh +++ b/scripts/publish_linux.sh @@ -1,3 +1,6 @@ #!/bin/bash -./gradlew publishLinuxX64PublicationToSonatypeRepository closeAndReleaseRepository +./gradlew clean publishLinuxX64PublicationToMavenCentralRepository + +# login to https://central.sonatype.com/publishing/deployments , +# and release linux module manually diff --git a/scripts/publish_windows.bat b/scripts/publish_windows.bat index 5169b99..dca3505 100755 --- a/scripts/publish_windows.bat +++ b/scripts/publish_windows.bat @@ -1,3 +1,6 @@ @echo off -.\gradlew publishMingwX64PublicationToSonatypeRepository closeAndReleaseRepository +.\gradlew clean publishMingwX64PublicationToMavenCentralRepository + +:: login to https://central.sonatype.com/publishing/deployments , +:: and release windows module manually