mirror of
https://github.com/PaperMC/Folia.git
synced 2025-04-23 04:39:19 +08:00
add version print tasks
This commit is contained in:
parent
fca2eba2f8
commit
b3d994fb9b
@ -101,3 +101,15 @@ publishing {
|
|||||||
tasks.withType<RebuildGitPatches> {
|
tasks.withType<RebuildGitPatches> {
|
||||||
filterPatches.set(false)
|
filterPatches.set(false)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
tasks.register("printMinecraftVersion") {
|
||||||
|
doLast {
|
||||||
|
println(providers.gradleProperty("mcVersion").get().trim())
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
tasks.register("printPaperVersion") {
|
||||||
|
doLast {
|
||||||
|
println(project.version)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user