Last active
January 17, 2018 14:13
-
-
Save coreequip/8382a57959b7f86a6a88bf5657a3d197 to your computer and use it in GitHub Desktop.
Read version from MANIFEST.MF in groovy
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Reads the "Implementation-Version" from META-INF/MANIFEST.MF | |
def version = getClass().package?.implementationVersion == null ? '0.DEV' : getClass().package?.implementationVersion |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment