WildLoaders/NMS/v1_19/build.gradle

36 lines
818 B
Groovy
Raw Normal View History

2023-03-17 15:01:20 +01:00
plugins {
id("io.papermc.paperweight.userdev") version "1.3.8"
}
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(17))
}
}
2023-03-25 10:53:58 +01:00
group 'NMS:v1194'
2023-03-17 15:01:20 +01:00
dependencies {
paperweightDevelopmentBundle("io.papermc.paper:dev-bundle:1.19.4-R0.1-SNAPSHOT")
compileOnly project(":API")
2023-03-25 10:53:58 +01:00
compileOnly rootProject
2023-03-17 15:01:20 +01: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")
2023-03-17 15:01:20 +01:00
outputJar.set(layout.buildDirectory.file(outputFile.getPath()))
}
}
if (project.hasProperty('nms.compile_v1_19') && !Boolean.valueOf(project.findProperty("nms.compile_v1_19").toString())) {
project.tasks.all { task -> task.enabled = false }
}