Skip to content

Commit 13a2e2e

Browse files
committed
Publish to Gradle Central Plugin Repository
Update CI to set the attributes required for publishing to the Gradle Central Plugin Repository. Closes gh-150
1 parent 1d3c825 commit 13a2e2e

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

ci/scripts/promote.sh

+8
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,14 @@ if [[ ${RELEASE_TYPE} = "RELEASE" ]]; then
6161
if [[ $artifactsPublished = "false" ]]; then
6262
echo "Failed to publish"
6363
exit 1
64+
else
65+
curl \
66+
-s \
67+
-u ${BINTRAY_USERNAME}:${BINTRAY_API_KEY} \
68+
-H "Content-Type: application/json" \
69+
-d '[ { "name": "gradle-plugin", "values": ["io.spring.javaformat:io.spring.javaformat:spring-javaformat-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)