mirror of
https://github.com/Xiao-MoMi/Custom-Nameplates.git
synced 2025-12-23 08:59:30 +00:00
61 lines
1.9 KiB
Plaintext
61 lines
1.9 KiB
Plaintext
plugins {
|
|
id("io.github.goooler.shadow") version "8.1.8"
|
|
id("maven-publish")
|
|
}
|
|
|
|
repositories {
|
|
maven("https://jitpack.io/")
|
|
maven("https://papermc.io/repo/repository/maven-public/")
|
|
maven("https://oss.sonatype.org/content/repositories/snapshots")
|
|
}
|
|
|
|
dependencies {
|
|
implementation(project(":common"))
|
|
// Adventure
|
|
implementation("net.kyori:adventure-api:${rootProject.properties["adventure_bundle_version"]}")
|
|
compileOnly("net.kyori:adventure-text-minimessage:${rootProject.properties["adventure_bundle_version"]}")
|
|
compileOnly("net.kyori:adventure-text-serializer-gson:${rootProject.properties["adventure_bundle_version"]}")
|
|
// YAML
|
|
implementation(files("libs/boosted-yaml-${rootProject.properties["boosted_yaml_version"]}.jar"))
|
|
// Cache
|
|
compileOnly("com.github.ben-manes.caffeine:caffeine:${rootProject.properties["caffeine_version"]}")
|
|
// Netty
|
|
compileOnly("io.netty:netty-all:4.1.113.Final")
|
|
// GSON
|
|
compileOnly("com.google.code.gson:gson:${rootProject.properties["gson_version"]}")
|
|
}
|
|
|
|
java {
|
|
sourceCompatibility = JavaVersion.VERSION_17
|
|
targetCompatibility = JavaVersion.VERSION_17
|
|
toolchain {
|
|
languageVersion = JavaLanguageVersion.of(17)
|
|
}
|
|
}
|
|
|
|
tasks.withType<JavaCompile> {
|
|
options.encoding = "UTF-8"
|
|
options.release.set(17)
|
|
dependsOn(tasks.clean)
|
|
}
|
|
|
|
tasks {
|
|
shadowJar {
|
|
archiveClassifier = ""
|
|
archiveFileName = "CustomNameplates-${rootProject.properties["project_version"]}.jar"
|
|
relocate ("net.kyori", "net.momirealms.customnameplates.libraries")
|
|
relocate("dev.dejvokep", "net.momirealms.customnameplates.libraries")
|
|
}
|
|
}
|
|
|
|
publishing {
|
|
publications {
|
|
create<MavenPublication>("mavenJava") {
|
|
groupId = "net.momirealms"
|
|
artifactId = "CustomNameplates"
|
|
version = rootProject.version.toString()
|
|
artifact(tasks.shadowJar)
|
|
}
|
|
}
|
|
}
|