Fixes {} being used instead of [] for array declaration causing a build script error.

This commit is contained in:
Paul Reilly 2023-08-25 12:39:09 -05:00
parent 6cd4d83cf8
commit 01a0d66886

View File

@ -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" }
}