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() } } } }