mirror of
https://github.com/SimplexDevelopment/FreedomNetworkSuite.git
synced 2024-11-14 21:23:33 +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 {
|
plugins {
|
||||||
id 'java'
|
id 'java'
|
||||||
id 'java-library'
|
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'
|
group 'fns'
|
||||||
version '1.0.0'
|
version '1.0.0'
|
||||||
|
|
||||||
|
def weight = -1
|
||||||
|
|
||||||
subprojects {
|
subprojects {
|
||||||
apply plugin: 'java'
|
apply plugin: 'java'
|
||||||
apply plugin: 'java-library'
|
apply plugin: 'java-library'
|
||||||
@ -34,11 +36,11 @@ subprojects {
|
|||||||
|
|
||||||
bukkit {
|
bukkit {
|
||||||
apiVersion = "1.20"
|
apiVersion = "1.20"
|
||||||
authors = {"allinkdev",
|
authors = ["allinkdev",
|
||||||
"Paldiu",
|
"Paldiu",
|
||||||
"evallll",
|
"evallll",
|
||||||
"FlorianMichael/EnZaXD",
|
"FlorianMichael/EnZaXD",
|
||||||
"VideoGameSmash12"}
|
"VideoGameSmash12"]
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
@ -63,14 +65,6 @@ subprojects {
|
|||||||
useJUnitPlatform()
|
useJUnitPlatform()
|
||||||
}
|
}
|
||||||
|
|
||||||
var weight = -1;
|
|
||||||
|
|
||||||
afterEvaluate {
|
|
||||||
if (weight == -1) {
|
|
||||||
weight = 0
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
javadoc {
|
javadoc {
|
||||||
options {
|
options {
|
||||||
encoding = 'UTF-8'
|
encoding = 'UTF-8'
|
||||||
@ -78,10 +72,12 @@ subprojects {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks.register('buildChain') {
|
afterEvaluate {
|
||||||
dependsOn subprojects.sort {
|
if (weight == -1) {
|
||||||
a, b -> a.properties.weight <=> b.properties.weight
|
weight = 0
|
||||||
}.collect {
|
|
||||||
":${it.path}:build"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
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