From d030f6e711b7d67cc677e669760771c2ee8ebe5a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sebastian=20Ho=C3=9F?= Date: Wed, 22 Jun 2016 19:20:39 +0200 Subject: [PATCH] add maintenance & release targets MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Sebastian Hoß --- Makefile | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/Makefile b/Makefile index 8abd7ea..c86f1e8 100755 --- a/Makefile +++ b/Makefile @@ -31,3 +31,18 @@ docker-verify: @docker-compose -f build/docker/build-environment.yml run --rm --user=$(UID) build # findbugs likes to create these @rm -rf ?/ + +.PHONY: update-parent +update-parent: ##@maintenance Updates the Maven parent to its latest version + @mvn versions:update-parent -U -DgenerateBackupPoms=false + @git add pom.xml + @git commit pom.xml -s -m 'Update to latest parent' + +.PHONY: release-into-local-nexus +release-into-local-nexus: ##@release Releases all artifacts into a local nexus + @mvn clean deploy scm:tag -Prelease -Drevision=$(timestamp) -DpushChanges=false -DskipLocalStaging=true -Drelease=local + +.PHONY: release-into-sonatype-nexus +release-into-sonatype-nexus: ##@release Releases all artifacts into Maven Central (through Sonatype OSSRH) + @mvn clean deploy scm:tag -Prelease -Drevision=$(timestamp) -DpushChanges=false -Drelease=sonatype + @git push --tags origin master -- 2.11.4.GIT