Created
February 3, 2014 22:31
-
-
Save mikeholler/8793818 to your computer and use it in GitHub Desktop.
Task to print project version. Run using `./gradlew -q version`.
This file contains 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
// Task to get current version of the project. | |
task version(type: VersionTask) | |
class VersionTask extends DefaultTask { | |
@TaskAction | |
def version() { | |
println project.version | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment