mirror of
https://github.com/SimplexDevelopment/FreedomNetworkSuite.git
synced 2024-11-14 13:13:32 +00:00
Fixes {} being used instead of [] for array declaration causing a build script error.
This commit is contained in:
parent
6cd4d83cf8
commit
01a0d66886
34
build.gradle
34
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" }
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user