diff --git a/gradle.properties b/gradle.properties index cbb8377..997b58f 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1 +1 @@ -paperVersion=1.20.6 \ No newline at end of file +gameVersions=1.21 \ No newline at end of file diff --git a/plugin/build.gradle.kts b/plugin/build.gradle.kts index 735d349..2fd2065 100644 --- a/plugin/build.gradle.kts +++ b/plugin/build.gradle.kts @@ -55,6 +55,10 @@ tasks.shadowJar { val versionString: String = project.version as String val isRelease: Boolean = !versionString.contains("-pre") +val versions: List = (property("gameVersions") as String) + .split(",") + .map { it.trim() } + hangarPublish { // docs - https://docs.papermc.io/misc/hangar-publishing publications.register("plugin") { id.set("HologramAPI") @@ -63,9 +67,6 @@ hangarPublish { // docs - https://docs.papermc.io/misc/hangar-publishing apiKey.set(System.getenv("HANGAR_API_TOKEN")) platforms.register(Platforms.PAPER) { jar.set(tasks.shadowJar.flatMap { it.archiveFile }) - val versions: List = (property("paperVersion") as String) - .split(",") - .map { it.trim() } platformVersions.set(versions) } }