2022-06-17 20:02:28 -04:00
|
|
|
plugins {
|
|
|
|
|
`java-library`
|
2026-03-02 15:40:11 +01:00
|
|
|
id("io.papermc.paperweight.userdev") version "2.0.0-beta.19"
|
2023-01-05 19:41:00 -05:00
|
|
|
id("net.nuggetmc.java-conventions")
|
2022-06-17 20:02:28 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
group = "net.nuggetmc"
|
|
|
|
|
description = "TerminatorPlus"
|
|
|
|
|
|
|
|
|
|
java {
|
|
|
|
|
// Configure the java toolchain. This allows gradle to auto-provision JDK 17 on systems that only have JDK 8 installed for example.
|
2024-11-30 13:43:15 +01:00
|
|
|
toolchain.languageVersion.set(JavaLanguageVersion.of(21))
|
2022-06-17 20:02:28 -04:00
|
|
|
}
|
|
|
|
|
|
2026-03-02 15:40:11 +01:00
|
|
|
repositories {
|
|
|
|
|
maven {
|
|
|
|
|
url = uri("https://repo.citizensnpcs.co/")
|
|
|
|
|
}
|
|
|
|
|
maven {
|
|
|
|
|
name = "alessiodpRepo"
|
|
|
|
|
url = uri("https://repo.alessiodp.com/releases")
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2022-06-17 20:02:28 -04:00
|
|
|
dependencies {
|
2026-03-02 15:40:11 +01:00
|
|
|
paperweight.paperDevBundle("1.21.11-R0.1-SNAPSHOT")
|
|
|
|
|
|
|
|
|
|
implementation("net.byteflux:libby-bukkit:1.3.1")
|
2022-06-17 20:02:28 -04:00
|
|
|
|
|
|
|
|
//add the TerminatorPlus-API module
|
|
|
|
|
implementation(project(":TerminatorPlus-API"))
|
2026-03-02 15:40:11 +01:00
|
|
|
|
|
|
|
|
// Citizens NPC API
|
|
|
|
|
compileOnly("net.citizensnpcs:citizens-main:2.0.41-SNAPSHOT")
|
2022-06-17 20:02:28 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
tasks {
|
|
|
|
|
// Configure reobfJar to run when invoking the build task
|
|
|
|
|
assemble {
|
|
|
|
|
dependsOn(reobfJar)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
compileJava {
|
|
|
|
|
options.encoding = Charsets.UTF_8.name() // We want UTF-8 for everything
|
|
|
|
|
|
|
|
|
|
// Set the release flag. This configures what version bytecode the compiler will emit, as well as what JDK APIs are usable.
|
|
|
|
|
// See https://openjdk.java.net/jeps/247 for more information.
|
2024-11-30 13:43:15 +01:00
|
|
|
options.release.set(21)
|
2022-06-17 20:02:28 -04:00
|
|
|
}
|
|
|
|
|
javadoc {
|
|
|
|
|
options.encoding = Charsets.UTF_8.name() // We want UTF-8 for everything
|
|
|
|
|
}
|
|
|
|
|
processResources {
|
|
|
|
|
filteringCharset = Charsets.UTF_8.name() // We want UTF-8 for everything
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
reobfJar {
|
|
|
|
|
// This is an example of how you might change the output location for reobfJar. It's recommended not to do this
|
|
|
|
|
// for a variety of reasons, however it's asked frequently enough that an example of how to do it is included here.
|
|
|
|
|
outputJar.set(layout.buildDirectory.file("libs/PaperweightTestPlugin-${project.version}.jar"))
|
|
|
|
|
}
|
|
|
|
|
*/
|
|
|
|
|
}
|
|
|
|
|
|