File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -58,11 +58,19 @@ jobs:
5858 echo "((signing-key))" > private.asc
5959 gpg --import --batch --no-tty private.asc
6060 ./mvnw deploy -s .mvn/settings.xml
61+ GRADLE_PUBLISH_VERSION=$( sed '\!<parent!,\!</parent!d' pom.xml | grep '<version' | head -1 | sed -e 's/.*<version>//' -e 's!</version>.*$!!' )
62+ echo $GRADLE_PUBLISH_VERSION | grep -q SNAPSHOT
63+ if [ "$?" == "1" ]; then
64+ cd gradle-plugin/publish
65+ ./gradlew publishExisting
66+ fi
6167 params :
6268 TERM : -dumb
6369 passphrase : ((signing-passphrase))
6470 sonatype_username : ((sonatype-username))
6571 sonatype_password : ((sonatype-password))
6672 spring_username : ((artifactory-username))
6773 spring_password : ((artifactory-password))
74+ GRADLE_PUBLISH_KEY : ((gradle-publish-key))
75+ GRADLE_PUBLISH_SECRET : ((gradle-publish-secret))
6876 on_failure : *slack-failure
You can’t perform that action at this time.
0 commit comments