From 7991de3628984272513dd46def0364fc535106d5 Mon Sep 17 00:00:00 2001 From: erict875 Date: Tue, 14 Oct 2025 02:12:39 +0100 Subject: [PATCH] chore(release): adjust Maven command for central publishing - Modify the release script to use the default settings provided by actions/setup-java when publishing to the central repository. This change ensures that the correct settings are applied without overriding them with the -s option. --- scripts/release.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/scripts/release.sh b/scripts/release.sh index 2d2e2200..7131bd40 100755 --- a/scripts/release.sh +++ b/scripts/release.sh @@ -133,7 +133,12 @@ cmd_publish() { $no_docker && mvn_args=(-q -DnoDocker=true -P "$profile" deploy) $skip_tests && mvn_args=(-q -DskipTests -P "$profile" deploy) if $no_docker && $skip_tests; then mvn_args=(-q -DskipTests -DnoDocker=true -P "$profile" deploy); fi - run_cmd mvn $MVN_SETTINGS_OPTS "${mvn_args[@]}" + # For Central publishing, prefer the settings provided by actions/setup-java (no -s override) + if [[ "$profile" == "release-central" ]]; then + run_cmd mvn "${mvn_args[@]}" + else + run_cmd mvn $MVN_SETTINGS_OPTS "${mvn_args[@]}" + fi } cmd_next_snapshot() {