2023-12-16 16:34:58 +01:00
|
|
|
plugins {
|
2024-04-29 18:50:42 +02:00
|
|
|
id("io.papermc.paperweight.userdev") version "1.6.0"
|
2023-12-16 16:34:58 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
java {
|
|
|
|
toolchain {
|
|
|
|
languageVersion.set(JavaLanguageVersion.of(17))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
group 'NMS:v1_20_3'
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
paperweightDevelopmentBundle("io.papermc.paper:dev-bundle:1.20.4-R0.1-SNAPSHOT")
|
|
|
|
compileOnly project(":API")
|
|
|
|
compileOnly rootProject
|
|
|
|
}
|
|
|
|
|
|
|
|
shadowJar {
|
|
|
|
archiveFileName = "${project.name}-exclude.jar"
|
|
|
|
}
|
|
|
|
|
|
|
|
assemble {
|
|
|
|
dependsOn(reobfJar)
|
|
|
|
}
|
|
|
|
|
|
|
|
tasks {
|
|
|
|
reobfJar {
|
|
|
|
File outputFile = new File(rootProject.archiveFolder, "reobf/${project.name}.jar")
|
|
|
|
outputJar.set(layout.buildDirectory.file(outputFile.getPath()))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (project.hasProperty('nms.compile_v1_20') && !Boolean.valueOf(project.findProperty("nms.compile_v1_20").toString())) {
|
|
|
|
project.tasks.all { task -> task.enabled = false }
|
|
|
|
}
|