Skip to content

Commit 711349d

Browse files
committed
Update printVersion task
1 parent 92fcdf1 commit 711349d

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

build.gradle.kts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,9 +117,15 @@ spotless {
117117
}
118118
}
119119

120+
/**
121+
* Usage:
122+
* ./gradlew printVersion
123+
*/
120124
tasks.register("printVersion") {
125+
description = "Prints the current project version to the console"
126+
group = "help"
121127
doLast {
122-
println("Project version: $version")
128+
println("${project.name} version: ${project.version}")
123129
}
124130
}
125131

0 commit comments

Comments
 (0)