From 042d495d9237d369d3a3dee277ae4285a45c4134 Mon Sep 17 00:00:00 2001 From: Madhura Bhave Date: Thu, 11 Oct 2018 16:29:03 -0700 Subject: [PATCH] Set gradle-plugin attribute on the Bintray package Closes gh-14447 --- ci/scripts/promote.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/ci/scripts/promote.sh b/ci/scripts/promote.sh index 2eff9db7e7..719a4d8676 100755 --- a/ci/scripts/promote.sh +++ b/ci/scripts/promote.sh @@ -61,6 +61,14 @@ if [[ $RELEASE_TYPE = "RELEASE" ]]; then if [[ $ARTIFACTS_PUBLISHED = "false" ]]; then echo "Failed to publish" exit 1 + else + curl \ + -s \ + -u ${BINTRAY_USERNAME}:${BINTRAY_PASSWORD} \ + -H "Content-Type: application/json" \ + -d '[ { "name": "gradle-plugin", "values": ["org.springframework.boot:org.springframework.boot:spring-boot-gradle-plugin"] } ]' \ + -X POST \ + https://api.bintray.com/packages/${BINTRAY_SUBJECT}/${BINTRAY_REPO}/${groupId}/versions/${version}/attributes > /dev/null || { echo "Failed to add attributes" >&2; exit 1; } fi fi