From 01a0d66886949480da2fef7f1f67af23dc6319fe Mon Sep 17 00:00:00 2001 From: Paul Reilly Date: Fri, 25 Aug 2023 12:39:09 -0500 Subject: [PATCH] Fixes {} being used instead of [] for array declaration causing a build script error. --- build.gradle | 34 +++++++++++++++------------------- 1 file changed, 15 insertions(+), 19 deletions(-) diff --git a/build.gradle b/build.gradle index 0892233..7d3fb7f 100644 --- a/build.gradle +++ b/build.gradle @@ -1,12 +1,14 @@ plugins { id 'java' id 'java-library' - id 'net.minecrell.plugin-yml.bukkit' version '0.6.0' + id 'net.minecrell.plugin-yml.bukkit' version '0.5.2' } group 'fns' version '1.0.0' +def weight = -1 + subprojects { apply plugin: 'java' apply plugin: 'java-library' @@ -34,11 +36,11 @@ subprojects { bukkit { apiVersion = "1.20" - authors = {"allinkdev", - "Paldiu", - "evallll", - "FlorianMichael/EnZaXD", - "VideoGameSmash12"} + authors = ["allinkdev", + "Paldiu", + "evallll", + "FlorianMichael/EnZaXD", + "VideoGameSmash12"] } dependencies { @@ -63,14 +65,6 @@ subprojects { useJUnitPlatform() } - var weight = -1; - - afterEvaluate { - if (weight == -1) { - weight = 0 - } - } - javadoc { options { encoding = 'UTF-8' @@ -78,10 +72,12 @@ subprojects { } } -tasks.register('buildChain') { - dependsOn subprojects.sort { - a, b -> a.properties.weight <=> b.properties.weight - }.collect { - ":${it.path}:build" +afterEvaluate { + if (weight == -1) { + weight = 0 } } + +tasks.register('buildChain') { + dependsOn subprojects.sort { a, b -> a.properties.weight <=> b.properties.weight }.collect { ":${it.path}:build" } +}