add version print tasks

This commit is contained in:
Jason Penilla 2023-03-29 11:56:33 -07:00
parent fca2eba2f8
commit b3d994fb9b
No known key found for this signature in database
GPG Key ID: 0E75A301420E48F8
1 changed files with 12 additions and 0 deletions

View File

@ -101,3 +101,15 @@ publishing {
tasks.withType<RebuildGitPatches> {
filterPatches.set(false)
}
tasks.register("printMinecraftVersion") {
doLast {
println(providers.gradleProperty("mcVersion").get().trim())
}
}
tasks.register("printPaperVersion") {
doLast {
println(project.version)
}
}