mirror of
https://github.com/plexusorg/ItemizerX.git
synced 2026-06-04 03:36:54 +00:00
Push changes
This commit is contained in:
+22
-5
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user