Skip to content

Commit a54ca79

Browse files
committed
Merge pull request #30 from palantir/feature/task-des
Add group and description to printVersion task
2 parents 12f425a + 17bef42 commit a54ca79

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/main/groovy/com/palantir/gradle/gitversion/GitVersionPlugin.groovy

+6-2
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,12 @@ class GitVersionPlugin implements Plugin<Project> {
7171
return new VersionDetails(tagName, commitCount)
7272
}
7373

74-
project.tasks.create('printVersion') << {
75-
println project.version
74+
project.tasks.create('printVersion') {
75+
group = 'Versioning'
76+
description = 'Prints the project\'s configured version to standard out'
77+
doLast {
78+
println project.version
79+
}
7680
}
7781
}
7882

0 commit comments

Comments
 (0)