Skip to content

Commit 7991de3

Browse files
author
erict875
committed
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.
1 parent 733a661 commit 7991de3

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

scripts/release.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,12 @@ cmd_publish() {
133133
$no_docker && mvn_args=(-q -DnoDocker=true -P "$profile" deploy)
134134
$skip_tests && mvn_args=(-q -DskipTests -P "$profile" deploy)
135135
if $no_docker && $skip_tests; then mvn_args=(-q -DskipTests -DnoDocker=true -P "$profile" deploy); fi
136-
run_cmd mvn $MVN_SETTINGS_OPTS "${mvn_args[@]}"
136+
# For Central publishing, prefer the settings provided by actions/setup-java (no -s override)
137+
if [[ "$profile" == "release-central" ]]; then
138+
run_cmd mvn "${mvn_args[@]}"
139+
else
140+
run_cmd mvn $MVN_SETTINGS_OPTS "${mvn_args[@]}"
141+
fi
137142
}
138143

139144
cmd_next_snapshot() {

0 commit comments

Comments
 (0)