Skip to content

Commit 220ab63

Browse files
author
Paul Jones
committed
Generate md5 and sha1 sums too
1 parent 3a18707 commit 220ab63

File tree

2 files changed

+12
-5
lines changed

2 files changed

+12
-5
lines changed

Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,11 @@ srcdist: distclean
6969
(cd build; zip -r $(SRC_ARCHIVE).zip $(SRC_ARCHIVE))
7070
(cd build; rm -rf $(SRC_ARCHIVE))
7171

72-
deploy-maven-bundle: maven-bundle
72+
stage-maven-bundle: maven-bundle
7373
( \
7474
cd build/bundle; \
75-
NEXUS_USERNAME=`cat $(GNUPG_PATH)/nexus-username`; \
76-
NEXUS_PASSWORD=`cat $(GNUPG_PATH)/nexus-password`; \
75+
NEXUS_USERNAME=`cat $(GNUPG_PATH)/../nexus/username`; \
76+
NEXUS_PASSWORD=`cat $(GNUPG_PATH)/../nexus/password`; \
7777
VERSION=$(VERSION) \
7878
SIGNING_KEY=$(SIGNING_KEY) \
7979
GNUPG_PATH=$(GNUPG_PATH) \
@@ -82,7 +82,7 @@ deploy-maven-bundle: maven-bundle
8282
amqp-client-$(VERSION).pom \
8383
amqp-client-$(VERSION).jar \
8484
amqp-client-$(VERSION)-javadoc.jar \
85-
amqp-client-$(VERSION)-sources.jar; \
85+
amqp-client-$(VERSION)-sources.jar && \
8686
mvn org.sonatype.plugins:nexus-maven-plugin:staging-close \
8787
-Dnexus.url=http://oss.sonatype.org \
8888
-Dnexus.username=$$NEXUS_USERNAME \

nexus-upload.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,13 @@ for ARTIFACT_NAME in $@; do
1313

1414
rm -f $ARTIFACT_NAME.asc
1515
gpg --homedir $GNUPG_PATH/.gnupg --local-user $SIGNING_KEY --no-tty --armor --detach-sign --output $ARTIFACT_NAME.asc $ARTIFACT_NAME
16+
md5sum $ARTIFACT_NAME | cut -f1 -d' ' >$ARTIFACT_NAME.md5
17+
md5sum $ARTIFACT_NAME.asc | cut -f1 -d' ' >$ARTIFACT_NAME.asc.md5
18+
sha1sum $ARTIFACT_NAME | cut -f1 -d' ' >$ARTIFACT_NAME.sha1
19+
sha1sum $ARTIFACT_NAME.asc | cut -f1 -d' ' >$ARTIFACT_NAME.asc.sha1
1620
curl -XPUT -d @$ARTIFACT_NAME http://$CREDS@oss.sonatype.org/service/local/staging/deploy/maven2/com/rabbitmq/amqp-client/$VERSION/$ARTIFACT_NAME
17-
curl -XPUT -d @$ARTIFACT_NAME.asc http://$CREDS@oss.sonatype.org/service/local/staging/deploy/maven2/com/rabbitmq/amqp-client/$VERSION/$ARTIFACT_NAME.asc
21+
22+
for EXT in md5 sha1 asc asc.md5 asc.sha1; do
23+
curl -XPUT -d @$ARTIFACT_NAME.$EXT http://$CREDS@oss.sonatype.org/service/local/staging/deploy/maven2/com/rabbitmq/amqp-client/$VERSION/$ARTIFACT_NAME.$EXT
24+
done
1825
done

0 commit comments

Comments
 (0)