Skip to content

Instantly share code, notes, and snippets.

Avatar
👋

Paul Dunnavant pdunnavant

👋
View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am pdunnavant on github.
  • I am pdunnavant (https://keybase.io/pdunnavant) on keybase.
  • I have a public key ASDXMgFG--jth7sGUxd3Lw8pvwfkoAaqL6-FSblVT3iEDwo

To claim this, I am signing this object:

@pdunnavant
pdunnavant / increment-pom-versions.sh
Last active May 20, 2022
Script that uses the versions-maven-plugin to automatically increment the build number in the version of a project. This is intended to be used in a continuous delivery environment.
View increment-pom-versions.sh
#!/bin/bash
#################################################################################
# WARNING: DO NOT JUST RUN THIS SCRIPT BLINDLY. MAKE SURE YOU UNDERSTAND WHAT IT
# IS DOING. IT *WILL* TRY TO COMMIT CHANGES. IT WILL ALSO TRY TO EAT YOUR
# CHILDREN. IT MAY CAUSE THE SUN TO GO SUPERNOVA. I CLAIM NO RESPONSIBILITY FOR
# WHATEVER HAPPENS AFTER YOU RUN THIS. NOW, CARRY ON. :-)
#
# This script, run from the root of a Maven single or multi-module project, will
# update the pom files to increment the build number on the version.