Skip to content

Commit

Permalink
Merge pull request #30 from palantir/feature/task-des
Browse files Browse the repository at this point in the history
Add group and description to printVersion task
  • Loading branch information
markelliot committed Apr 6, 2016
2 parents 12f425a + 17bef42 commit a54ca79
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,12 @@ class GitVersionPlugin implements Plugin<Project> {
return new VersionDetails(tagName, commitCount)
}

project.tasks.create('printVersion') << {
println project.version
project.tasks.create('printVersion') {
group = 'Versioning'
description = 'Prints the project\'s configured version to standard out'
doLast {
println project.version
}
}
}

Expand Down

0 comments on commit a54ca79

Please sign in to comment.