sign artifacts for release into maven central
[maven-build-process.git] / Makefile
blob465432d0fcfc44ee34960be6f527dbc678c2930a
1 # https://www.gnu.org/prep/standards/html_node/Makefile-Basics.html#Makefile-Basics
2 # http://clarkgrubb.com/makefile-style-guide
3 SHELL = /bin/sh
5 .PHONY: all
6 all: help
8 .PHONY: help
9 help:
10 @echo ""
11 @echo "-- Help Menu"
12 @echo ""
13 @echo " 1. make display-dependency-updates - display dependency updates"
14 @echo " 2. make display-plugin-updates - display plugin updates"
15 @echo " 3. make display-property-updates - display property updates"
16 @echo " 4. make sonar-analysis - perform sonar analysis"
17 @echo " 5. make sign-waiver - GPG sign the WAIVER"
18 @echo " 6. make release - perform the next release"
20 .PHONY: display-dependency-updates
21 display-dependency-updates:
22 @mvn versions:display-dependency-updates -U -pl maven-boms -amd
24 .PHONY: display-plugin-updates
25 display-plugin-updates:
26 @mvn versions:display-plugin-updates -U -pl maven-parents -amd
28 .PHONY: display-property-updates
29 display-property-updates:
30 @mvn versions:display-property-updates -U
32 .PHONY: sonar-analysis
33 sonar-analysis:
34 # http://docs.sonarqube.org/display/SONAR/Analyzing+with+SonarQube+Scanner+for+Maven
35 @mvn clean install
36 @mvn sonar:sonar -Dsonar.host.url=http://localhost:59000
38 .PHONY: sign-waiver
39 sign-waiver:
40 @gpg2 --no-version --armor --sign AUTHORS/WAIVER
42 timestamp := $(shell /bin/date "+%Y.%m.%d-%H%M%S")
44 .PHONY: release-into-local-nexus
45 release-into-local-nexus:
46 @mvn versions:set -DnewVersion=$(timestamp) versions:commit
47 @mvn clean deploy scm:tag -Dtag=maven-build-process-$(timestamp) -DpushChanges=false -DskipLocalStaging=true -Drelease=local
48 @mvn versions:set -DnewVersion=0.0.0-SNAPSHOT versions:commit
50 .PHONY: release-into-sonatype-nexus
51 release-into-sonatype-nexus:
52 @mvn versions:set -DnewVersion=$(timestamp) versions:commit
53 @mvn clean gpg:sign deploy scm:tag -Dtag=maven-build-process-$(timestamp) -DpushChanges=false -Drelease=sonatype
54 @mvn versions:set -DnewVersion=0.0.0-SNAPSHOT versions:commit