Skip to content

Commit 042d495

Browse files
committed
Set gradle-plugin attribute on the Bintray package
Closes gh-14447
1 parent b1399db commit 042d495

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

ci/scripts/promote.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,14 @@ if [[ $RELEASE_TYPE = "RELEASE" ]]; then
6161
if [[ $ARTIFACTS_PUBLISHED = "false" ]]; then
6262
echo "Failed to publish"
6363
exit 1
64+
else
65+
curl \
66+
-s \
67+
-u ${BINTRAY_USERNAME}:${BINTRAY_PASSWORD} \
68+
-H "Content-Type: application/json" \
69+
-d '[ { "name": "gradle-plugin", "values": ["org.springframework.boot:org.springframework.boot:spring-boot-gradle-plugin"] } ]' \
70+
-X POST \
71+
https://api.bintray.com/packages/${BINTRAY_SUBJECT}/${BINTRAY_REPO}/${groupId}/versions/${version}/attributes > /dev/null || { echo "Failed to add attributes" >&2; exit 1; }
6472
fi
6573
fi
6674

0 commit comments

Comments
 (0)