@@ -4,8 +4,11 @@ PACKAGE_NAME=rabbitmq-java-client
44
55JAVADOC_ARCHIVE =$(PACKAGE_NAME ) -javadoc-$(VERSION )
66SRC_ARCHIVE =$(PACKAGE_NAME ) -$(VERSION )
7+ SIGNING_KEY =056E8E56
8+ GNUPG_PATH =~
79
810WEB_URL =http://stage.rabbitmq.com/
11+ NEXUS_STAGE_URL =http://oss.sonatype.org/service/local/staging/deploy/maven2
912
1013AMQP_CODEGEN_DIR =$(shell fgrep sibling.codegen.dir build.properties | sed -e 's:sibling\.codegen\.dir=::')
1114
@@ -66,5 +69,37 @@ srcdist: distclean
6669 (cd build; zip -r $(SRC_ARCHIVE).zip $(SRC_ARCHIVE))
6770 (cd build; rm -rf $(SRC_ARCHIVE))
6871
69- deploy-maven-bundle : maven-bundle
70- rsync -r build/bundle/* $(MAVEN_RSYNC_DESTINATION )
72+ stage-maven-bundle : maven-bundle
73+ ( \
74+ cd build/bundle; \
75+ NEXUS_USERNAME=` cat $( GNUPG_PATH) /../nexus/username` ; \
76+ NEXUS_PASSWORD=` cat $( GNUPG_PATH) /../nexus/password` ; \
77+ VERSION=$(VERSION ) \
78+ SIGNING_KEY=$(SIGNING_KEY ) \
79+ GNUPG_PATH=$(GNUPG_PATH ) \
80+ CREDS=" $$ NEXUS_USERNAME:$$ NEXUS_PASSWORD" \
81+ ../../nexus-upload.sh \
82+ amqp-client-$(VERSION ) .pom \
83+ amqp-client-$(VERSION ) .jar \
84+ amqp-client-$(VERSION ) -javadoc.jar \
85+ amqp-client-$(VERSION ) -sources.jar && \
86+ mvn org.sonatype.plugins:nexus-maven-plugin:staging-close \
87+ -Dnexus.url=http://oss.sonatype.org \
88+ -Dnexus.username=$$ NEXUS_USERNAME \
89+ -Dnexus.password=$$ NEXUS_PASSWORD \
90+ -B \
91+ -Dnexus.description=" Public release of $$ VERSION" \
92+ )
93+
94+ promote-maven-bundle :
95+ ( \
96+ NEXUS_USERNAME=` cat $( GNUPG_PATH) /../nexus/username` ; \
97+ NEXUS_PASSWORD=` cat $( GNUPG_PATH) /../nexus/password` ; \
98+ mvn org.sonatype.plugins:nexus-maven-plugin:staging-promote \
99+ -Dnexus.url=http://oss.sonatype.org \
100+ -Dnexus.username=$$ NEXUS_USERNAME \
101+ -Dnexus.password=$$ NEXUS_PASSWORD \
102+ -Dnexus.promote.autoSelectOverride=true \
103+ -DtargetRepositoryId=releases \
104+ -B \
105+ )
0 commit comments