mirror of
https://github.com/BG-Software-LLC/WildLoaders.git
synced 2024-11-22 11:56:17 +01:00
34 lines
794 B
Groovy
34 lines
794 B
Groovy
|
plugins {
|
||
|
id("io.papermc.paperweight.userdev") version "1.3.8"
|
||
|
}
|
||
|
|
||
|
java {
|
||
|
toolchain {
|
||
|
languageVersion.set(JavaLanguageVersion.of(16))
|
||
|
}
|
||
|
}
|
||
|
|
||
|
dependencies {
|
||
|
paperweightDevelopmentBundle("io.papermc.paper:dev-bundle:1.17.1-R0.1-SNAPSHOT")
|
||
|
compileOnly project(":API")
|
||
|
compileOnly parent
|
||
|
}
|
||
|
|
||
|
shadowJar {
|
||
|
archiveFileName = "${project.name}-exclude.jar"
|
||
|
}
|
||
|
|
||
|
assemble {
|
||
|
dependsOn(reobfJar)
|
||
|
}
|
||
|
|
||
|
tasks {
|
||
|
reobfJar {
|
||
|
File outputFile = new File(parent.projectDir, "archive/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 }
|
||
|
}
|