spring-security/scripts/release/sync-to-central.sh
Josh Cummings d01b6fc6b1
Release Scripts
Added scripts for pushing released artifacts to the appropriate
repositories.
2019-06-19 13:32:25 -06:00

8 lines
390 B
Bash
Executable File

#!/bin/bash
RELEASE_VERSION=$1
BINTRAY_API_KEY=$2
SONATYPE_USER_TOKEN=$3
SONATYPE_USER_TOKEN_PWD=$4
curl -i -u spring-operator:$BINTRAY_API_KEY -XPOST "https://api.bintray.com/maven_central_sync/spring/jars/org.springframework.security/versions/$RELEASE_VERSION" -H "Content-Type: application/json" -d "{\"username\": \"$SONATYPE_USER_TOKEN\", \"password\": \"$SONATYPE_USER_TOKEN_PWD\"}"