WildLoaders/NMS/v1_17/build.gradle
2024-05-16 22:46:20 +03:00

36 lines
818 B
Groovy

plugins {
id("io.papermc.paperweight.userdev") version "1.7.1"
}
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(16))
}
}
group 'NMS:v1_17'
dependencies {
paperweightDevelopmentBundle("io.papermc.paper:dev-bundle:1.17.1-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_17') && !Boolean.valueOf(project.findProperty("nms.compile_v1_17").toString())) {
project.tasks.all { task -> task.enabled = false }
}