Skip to content

Commit d3603ba

Browse files
author
Dave Syer
committed
Alter pipeline to push plugin to Gradle
1 parent 7b6e36f commit d3603ba

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

pipeline.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)