From b3d994fb9b8f02059100037312bae530e1489e7c Mon Sep 17 00:00:00 2001 From: Jason Penilla <11360596+jpenilla@users.noreply.github.com> Date: Wed, 29 Mar 2023 11:56:33 -0700 Subject: [PATCH] add version print tasks --- build.gradle.kts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/build.gradle.kts b/build.gradle.kts index 61c36db..3b407b0 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -101,3 +101,15 @@ publishing { tasks.withType { filterPatches.set(false) } + +tasks.register("printMinecraftVersion") { + doLast { + println(providers.gradleProperty("mcVersion").get().trim()) + } +} + +tasks.register("printPaperVersion") { + doLast { + println(project.version) + } +}