Skip to content

Commit

Permalink
Fixed publish script to cope with >1 groupid in POM
Browse files Browse the repository at this point in the history
  • Loading branch information
jshiell committed Feb 22, 2022
1 parent 0f4b637 commit f25a3aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/publish
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@ main() {
exit 3
fi

local GROUP_PATH=$(cat "$POM_ARTEFACT" | grep groupId | cut -f2 -d'>' | cut -f1 -d'<' | sed 's%\.%/%g')
local GROUP_PATH=$(cat "$POM_ARTEFACT" | grep groupId | head -1 | cut -f2 -d'>' | cut -f1 -d'<' | sed 's%\.%/%g')

for ARTEFACT_FILE in $ARTEFACTS_DIR/{*.jar,*.pom}; do
local FILE_NAME=$(basename -- "$ARTEFACT_FILE")
echo "Publishing $FILE_NAME... "
echo "Publishing $FILE_NAME... $GROUP_PATH shitshitshit"
curl -X PUT -v \
-H "Authorization: token $API_TOKEN" \
--upload-file "$ARTEFACT_FILE" \
Expand Down

0 comments on commit f25a3aa

Please sign in to comment.