mirror of
https://github.com/HibiscusMC/HMCCosmetics.git
synced 2025-12-19 15:09:19 +00:00
134 lines
4.4 KiB
Plaintext
134 lines
4.4 KiB
Plaintext
import net.minecrell.pluginyml.bukkit.BukkitPluginDescription
|
|
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
|
|
|
|
plugins {
|
|
id("java")
|
|
id("com.github.johnrengelman.shadow") version "7.1.2"
|
|
id("xyz.jpenilla.run-paper") version "2.0.0"
|
|
id("net.minecrell.plugin-yml.bukkit") version "0.5.2"
|
|
}
|
|
|
|
group = "com.hibiscusmc"
|
|
version = "Infdev"
|
|
|
|
allprojects {
|
|
apply(plugin = "java")
|
|
apply(plugin = "java-library")
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
maven("https://papermc.io/repo/repository/maven-public/")
|
|
maven("https://oss.sonatype.org/content/repositories/snapshots")
|
|
maven("https://jitpack.io")
|
|
//maven("https://repo.dmulloy2.net/repository/public/") ProtocolLib Repo, constantly down
|
|
maven("https://repo.mineinabyss.com/releases/")
|
|
maven("https://repo.extendedclip.com/content/repositories/placeholderapi/")
|
|
maven("https://mvnrepository.com/artifact/com.zaxxer/HikariCP")
|
|
maven("https://repo.citizensnpcs.co")
|
|
//maven("https://mvn.lumine.io/repository/maven-public")
|
|
maven {
|
|
url = uri("https://mvn.lumine.io/repository/maven-public")
|
|
metadataSources {
|
|
artifact()
|
|
}
|
|
}
|
|
maven("https://maven.enginehub.org/repo/")
|
|
}
|
|
|
|
dependencies {
|
|
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation(project(path = ":common"))
|
|
implementation(project(path = ":v1_19_R1", configuration = "reobf"))
|
|
//implementation(files("v1_19_R1/build/libs/1_19_R1-unspecified.jar"))
|
|
|
|
compileOnly("com.mojang:authlib:1.5.25")
|
|
compileOnly("org.spigotmc:spigot-api:1.16.5-R0.1-SNAPSHOT")
|
|
compileOnly("org.jetbrains:annotations:23.0.0")
|
|
compileOnly("com.comphenix.protocol:ProtocolLib:5.0.0-SNAPSHOT")
|
|
compileOnly("me.clip:placeholderapi:2.11.1")
|
|
compileOnly("com.ticxo.modelengine:api:R3.0.1")
|
|
compileOnly("com.github.oraxen:oraxen:-SNAPSHOT")
|
|
compileOnly("com.github.LoneDev6:API-ItemsAdder:3.2.5")
|
|
compileOnly("com.sk89q.worldguard:worldguard-bukkit:7.1.0-SNAPSHOT")
|
|
compileOnly("it.unimi.dsi:fastutil:8.5.11")
|
|
|
|
//compileOnly("com.github.Fisher2911:FisherLib:master-SNAPSHOT")
|
|
implementation("net.kyori:adventure-api:4.11.0")
|
|
implementation ("net.kyori:adventure-text-minimessage:4.11.0")
|
|
implementation("net.kyori:adventure-platform-bukkit:4.1.2")
|
|
implementation("dev.triumphteam:triumph-gui:3.1.3")
|
|
implementation("org.spongepowered:configurate-yaml:4.1.2")
|
|
implementation("org.bstats:bstats-bukkit:3.0.0")
|
|
}
|
|
|
|
tasks {
|
|
|
|
compileJava {
|
|
options.encoding = Charsets.UTF_8.name()
|
|
options.release.set(17)
|
|
}
|
|
|
|
javadoc {
|
|
options.encoding = Charsets.UTF_8.name()
|
|
}
|
|
|
|
processResources {
|
|
duplicatesStrategy = DuplicatesStrategy.INCLUDE
|
|
filteringCharset = Charsets.UTF_8.name()
|
|
}
|
|
|
|
runServer {
|
|
minecraftVersion("1.19.2")
|
|
}
|
|
|
|
shadowJar {
|
|
dependsOn(":v1_19_R1:reobfJar")
|
|
mergeServiceFiles()
|
|
|
|
relocate("dev.triumphteam.gui", "com.hisbiscusmc.hmccosmetics.gui")
|
|
relocate("me.mattstudios.mf", "com.hisbiscusmc.hmccosmetics.mf")
|
|
relocate("net.kyori.adventure", "com.hisbiscusmc.hmccosmetics.adventure")
|
|
relocate("org.spongepowered.configurate", "com.hisbiscusmc.hmccosmetics.configurate")
|
|
relocate("org.bstats", "com.hisbiscusmc.hmccosmetics.bstats")
|
|
relocate("com.zaxxer.hikaricp", "com.hisbiscusmc.hmccosmetics.hikaricp")
|
|
relocate("com.j256.ormlite", "com.hisbiscusmc.hmccosmetics.ormlite")
|
|
//relocate("it.unimi.dsi", "com.hisbiscus.hmccosmetics.dsi")
|
|
archiveFileName.set("HMCCosmetics.jar")
|
|
|
|
dependencies {
|
|
exclude(dependency("org.yaml:snakeyaml"))
|
|
}
|
|
|
|
archiveFile.get().asFile.copyTo(layout.projectDirectory.file("run/plugins/HMCCosmeticsRemapped.jar").asFile, true)
|
|
}
|
|
|
|
build {
|
|
dependsOn(shadowJar)
|
|
}
|
|
}
|
|
|
|
|
|
bukkit {
|
|
load = BukkitPluginDescription.PluginLoadOrder.POSTWORLD
|
|
main = "com.hibiscusmc.hmccosmetics.HMCCosmeticsPlugin"
|
|
apiVersion = "1.19"
|
|
authors = listOf("LoJoSho")
|
|
depend = listOf("ProtocolLib")
|
|
softDepend = listOf("ModelEngine", "Oraxen", "ItemsAdder", "HMCColor", "WorldGuard")
|
|
version = "${project.version}"
|
|
|
|
commands {
|
|
register("cosmetic") {
|
|
description = "Base command"
|
|
}
|
|
}
|
|
}
|
|
|
|
java {
|
|
toolchain.languageVersion.set(JavaLanguageVersion.of(17
|
|
))
|
|
} |