Added compiling options for nms modules

This commit is contained in:
OmerBenGera 2021-12-25 21:04:06 +02:00
parent 32df7a73ea
commit 77c0f53346
7 changed files with 28 additions and 0 deletions

View File

@ -4,4 +4,8 @@ dependencies {
compileOnly "org.spigotmc:v1_12_R1:latest"
compileOnly project(":API")
compileOnly parent
}
if (project.hasProperty('nms.compile_v1_12') && !Boolean.valueOf(project.findProperty("nms.compile_v1_12").toString())) {
project.tasks.all { task -> task.enabled = false }
}

View File

@ -4,4 +4,8 @@ dependencies {
compileOnly "org.spigotmc:v1_15_R1-Paper:latest"
compileOnly project(":API")
compileOnly parent
}
if (project.hasProperty('nms.compile_v1_15') && !Boolean.valueOf(project.findProperty("nms.compile_v1_15").toString())) {
project.tasks.all { task -> task.enabled = false }
}

View File

@ -4,4 +4,8 @@ dependencies {
compileOnly "org.spigotmc:v1_16_R3-Tuinity:latest"
compileOnly project(":API")
compileOnly parent
}
if (project.hasProperty('nms.compile_v1_16') && !Boolean.valueOf(project.findProperty("nms.compile_v1_16").toString())) {
project.tasks.all { task -> task.enabled = false }
}

View File

@ -10,4 +10,8 @@ dependencies {
compileOnly "org.spigotmc:v1_17_R1-Paper:latest"
compileOnly project(":API")
compileOnly parent
}
if (project.hasProperty('nms.compile_v1_17') && !Boolean.valueOf(project.findProperty("nms.compile_v1_17").toString())) {
project.tasks.all { task -> task.enabled = false }
}

View File

@ -29,4 +29,8 @@ dependencies {
compileOnly project(":API")
compileOnly parent
}
if (project.hasProperty('nms.compile_v1_18') && !Boolean.valueOf(project.findProperty("nms.compile_v1_18").toString())) {
project.tasks.all { task -> task.enabled = false }
}

View File

@ -4,4 +4,8 @@ dependencies {
compileOnly "org.spigotmc:v1_7_R4:latest"
compileOnly project(":API")
compileOnly parent
}
if (project.hasProperty('nms.compile_v1_7') && !Boolean.valueOf(project.findProperty("nms.compile_v1_7").toString())) {
project.tasks.all { task -> task.enabled = false }
}

View File

@ -4,4 +4,8 @@ dependencies {
compileOnly "org.spigotmc:v1_8_R3-Taco:latest"
compileOnly project(":API")
compileOnly parent
}
if (project.hasProperty('nms.compile_v1_8') && !Boolean.valueOf(project.findProperty("nms.compile_v1_8").toString())) {
project.tasks.all { task -> task.enabled = false }
}