mirror of
https://github.com/apache/maven-mvnd.git
synced 2025-10-18 16:40:30 +00:00
Fix SDKMAN publish from master (#1097)
mvnd on master still produces "betas" (as long as mvn master does), and it must not be set as "default" version in SDKMAN. Defaults are still coming from mvnd-1.x branch.
This commit is contained in:
@@ -63,24 +63,25 @@ publishRelease ${VERSION} MAC_OSX darwin-amd64
|
|||||||
publishRelease ${VERSION} MAC_ARM64 darwin-aarch64
|
publishRelease ${VERSION} MAC_ARM64 darwin-aarch64
|
||||||
publishRelease ${VERSION} WINDOWS_64 windows-amd64
|
publishRelease ${VERSION} WINDOWS_64 windows-amd64
|
||||||
|
|
||||||
echo "Setting ${VERSION} as a default"
|
# master produces "betas" still, that must NOT be set as default
|
||||||
RESPONSE="$(curl -s -X PUT \
|
# echo "Setting ${VERSION} as a default"
|
||||||
-H "Consumer-Key: ${SDKMAN_CONSUMER_KEY}" \
|
# RESPONSE="$(curl -s -X PUT \
|
||||||
-H "Consumer-Token: ${SDKMAN_CONSUMER_TOKEN}" \
|
# -H "Consumer-Key: ${SDKMAN_CONSUMER_KEY}" \
|
||||||
-H "Content-Type: application/json" \
|
# -H "Consumer-Token: ${SDKMAN_CONSUMER_TOKEN}" \
|
||||||
-H "Accept: application/json" \
|
# -H "Content-Type: application/json" \
|
||||||
-d '{"candidate": "mvnd", "version": "'${VERSION}'"}' \
|
# -H "Accept: application/json" \
|
||||||
https://vendors.sdkman.io/default)"
|
# -d '{"candidate": "mvnd", "version": "'${VERSION}'"}' \
|
||||||
|
# https://vendors.sdkman.io/default)"
|
||||||
node -pe "
|
#
|
||||||
var json = JSON.parse(process.argv[1]);
|
# node -pe "
|
||||||
if (json.status == 202) {
|
# var json = JSON.parse(process.argv[1]);
|
||||||
json.status + ' as expected from /default';
|
# if (json.status == 202) {
|
||||||
} else {
|
# json.status + ' as expected from /default';
|
||||||
console.log('Unexpected status from /default: ' + process.argv[1]);
|
# } else {
|
||||||
process.exit(1);
|
# console.log('Unexpected status from /default: ' + process.argv[1]);
|
||||||
}
|
# process.exit(1);
|
||||||
" "${RESPONSE}"
|
# }
|
||||||
|
# " "${RESPONSE}"
|
||||||
|
|
||||||
RELEASE_URL="https://downloads.apache.org/maven/mvnd/${VERSION}"
|
RELEASE_URL="https://downloads.apache.org/maven/mvnd/${VERSION}"
|
||||||
echo "RELEASE_URL = $RELEASE_URL"
|
echo "RELEASE_URL = $RELEASE_URL"
|
||||||
|
Reference in New Issue
Block a user