2023-07-02 21:07:40 -07:00
|
|
|
plugins {
|
|
|
|
`java-library`
|
|
|
|
id("io.papermc.paperweight.userdev") version "1.5.5"
|
2023-07-02 23:33:36 -07:00
|
|
|
id("net.minecrell.plugin-yml.bukkit") version "0.6.0"
|
2023-07-02 21:07:40 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
group = "dev.plex"
|
|
|
|
version = "1.0.0-SNAPSHOT"
|
|
|
|
description = "Skyblock plugin"
|
|
|
|
|
|
|
|
java {
|
|
|
|
// Configure the java toolchain. This allows gradle to auto-provision JDK 17 on systems that only have JDK 8 installed for example.
|
|
|
|
toolchain.languageVersion.set(JavaLanguageVersion.of(17))
|
|
|
|
}
|
|
|
|
|
|
|
|
repositories {
|
|
|
|
mavenLocal()
|
|
|
|
mavenCentral()
|
|
|
|
maven {
|
|
|
|
url = uri("https://repo.infernalsuite.com/repository/maven-snapshots/")
|
|
|
|
}
|
|
|
|
maven {
|
|
|
|
url = uri("https://repo.rapture.pw/repository/maven-releases/")
|
|
|
|
}
|
2023-07-02 23:33:36 -07:00
|
|
|
maven {
|
|
|
|
url = uri("https://oss.sonatype.org/content/repositories/snapshots")
|
|
|
|
}
|
2023-07-02 21:07:40 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
paperweight.paperDevBundle("1.20.1-R0.1-SNAPSHOT")
|
|
|
|
compileOnly("com.infernalsuite.aswm:api:1.20-R0.1-SNAPSHOT")
|
|
|
|
compileOnly("org.projectlombok:lombok:1.18.28")
|
|
|
|
|
2023-07-02 23:33:36 -07:00
|
|
|
library("cloud.commandframework", "cloud-paper", "1.8.3")
|
|
|
|
|
2023-07-02 21:07:40 -07:00
|
|
|
annotationProcessor("org.projectlombok:lombok:1.18.28")
|
|
|
|
}
|
|
|
|
|
|
|
|
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.
|
|
|
|
options.release.set(17)
|
|
|
|
}
|
|
|
|
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"))
|
|
|
|
}
|
|
|
|
*/
|
2023-07-02 23:33:36 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
bukkit {
|
|
|
|
main = "dev.plex.skyblock.Skyblock"
|
|
|
|
name = "Plex-Skyblock"
|
|
|
|
version = project.version.toString()
|
|
|
|
apiVersion = "1.20"
|
2023-07-02 21:07:40 -07:00
|
|
|
}
|