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