Push changes

This commit is contained in:
2023-07-15 19:07:47 -05:00
parent 2da2ab5e13
commit 40dcb9a336
21 changed files with 1173 additions and 764 deletions
+22 -5
View File
@@ -1,23 +1,26 @@
plugins {
id("java")
id("com.github.johnrengelman.shadow") version "8.1.1"
id("io.papermc.paperweight.userdev") version "1.5.5" apply false
id("xyz.jpenilla.run-paper") version "2.1.0" apply false
}
group = "dev.plex"
version = "2.1"
java {
toolchain.languageVersion.set(JavaLanguageVersion.of(17))
}
subprojects {
apply(plugin = "java")
apply(plugin = "com.github.johnrengelman.shadow")
java.sourceCompatibility = JavaVersion.VERSION_17
apply(plugin = "io.papermc.paperweight.userdev")
apply(plugin = "xyz.jpenilla.run-paper")
repositories {
mavenCentral()
maven {
url = uri("https://repo.codemc.org/repository/nms/")
}
maven {
url = uri("https://repo.papermc.io/repository/maven-public/")
}
@@ -41,9 +44,23 @@ tasks {
archiveBaseName.set("ItemizerX")
archiveClassifier.set("")
archiveVersion.set("")
// helper function to relocate a package into our package
fun reloc(pkg: String) = relocate(pkg, "io.papermc.paperweight.testplugin.dependency.$pkg")
// relocate cloud and it's transitive dependencies
reloc("cloud.commandframework")
reloc("io.leangen.geantyref")
}
compileJava {
options.encoding = Charsets.UTF_8.name()
options.release.set(17)
}
assemble {
dependsOn("shadowJar")
dependsOn("reobfJar")
}
jar {