From d6bd3ba6d4d8b72fda9c266e329e7ddb34c7d8e6 Mon Sep 17 00:00:00 2001 From: Yang Seong Mo Date: Tue, 31 Dec 2024 20:34:14 +0900 Subject: [PATCH] Publish it. --- build.gradle.kts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/build.gradle.kts b/build.gradle.kts index 258064f..3560f4a 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -147,7 +147,10 @@ hangarPublish { channel = "Snapshot" platforms { register(Platforms.PAPER) { - jar = file("build/libs/${project.name}-${project.version}.jar") + jar = tasks.shadowJar.flatMap { it.archiveFile } + platformVersions = (property("paperVersion") as String) + .split(",") + .map { it.trim() } } } }