2022-09-10 20:32:48 +02:00
|
|
|
plugins {
|
2024-05-16 21:46:20 +02:00
|
|
|
id("io.papermc.paperweight.userdev") version "1.7.1"
|
2022-09-10 20:32:48 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
java {
|
|
|
|
toolchain {
|
|
|
|
languageVersion.set(JavaLanguageVersion.of(17))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-09-23 13:24:43 +02:00
|
|
|
group 'NMS:v1_18'
|
2023-03-25 10:53:58 +01:00
|
|
|
|
2022-09-10 20:32:48 +02:00
|
|
|
dependencies {
|
|
|
|
paperweightDevelopmentBundle("io.papermc.paper:dev-bundle:1.18.2-R0.1-SNAPSHOT")
|
|
|
|
compileOnly project(":API")
|
2023-03-25 10:53:58 +01:00
|
|
|
compileOnly rootProject
|
2022-09-10 20:32:48 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
shadowJar {
|
|
|
|
archiveFileName = "${project.name}-exclude.jar"
|
|
|
|
}
|
|
|
|
|
|
|
|
assemble {
|
|
|
|
dependsOn(reobfJar)
|
|
|
|
}
|
|
|
|
|
|
|
|
tasks {
|
|
|
|
reobfJar {
|
2023-03-25 10:53:58 +01:00
|
|
|
File outputFile = new File(rootProject.archiveFolder, "reobf/${project.name}.jar")
|
2022-09-10 20:32:48 +02:00
|
|
|
outputJar.set(layout.buildDirectory.file(outputFile.getPath()))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (project.hasProperty('nms.compile_v1_18') && !Boolean.valueOf(project.findProperty("nms.compile_v1_18").toString())) {
|
|
|
|
project.tasks.all { task -> task.enabled = false }
|
|
|
|
}
|