Skip to content

Commit

Permalink
Publish to Gradle Central Plugin Repository
Browse files Browse the repository at this point in the history
Update CI to set the attributes required for publishing to the
Gradle Central Plugin Repository.

Closes gh-150
  • Loading branch information
philwebb committed Dec 4, 2019
1 parent 1d3c825 commit 13a2e2e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions ci/scripts/promote.sh
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,14 @@ if [[ ${RELEASE_TYPE} = "RELEASE" ]]; then
if [[ $artifactsPublished = "false" ]]; then
echo "Failed to publish"
exit 1
else
curl \
-s \
-u ${BINTRAY_USERNAME}:${BINTRAY_API_KEY} \
-H "Content-Type: application/json" \
-d '[ { "name": "gradle-plugin", "values": ["io.spring.javaformat:io.spring.javaformat:spring-javaformat-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

Expand Down

0 comments on commit 13a2e2e

Please sign in to comment.