Chat/build.gradle.kts

72 lines
1.7 KiB
Plaintext
Raw Permalink Normal View History

2021-12-11 17:59:45 +00:00
plugins {
`java-library`
2024-07-21 16:57:58 +00:00
id("io.github.goooler.shadow") version "8.1.8"
id("com.github.ben-manes.versions") version "0.52.0"
2021-12-11 17:59:45 +00:00
}
allprojects {
group = "com.alttd.chat"
version = "2.0.0-SNAPSHOT"
2021-12-11 17:59:45 +00:00
description = "All in one minecraft chat plugin"
}
subprojects {
apply<JavaLibraryPlugin>()
java {
toolchain {
2024-07-21 16:57:58 +00:00
languageVersion.set(JavaLanguageVersion.of(21))
2021-12-11 17:59:45 +00:00
}
}
tasks {
withType<JavaCompile> {
options.encoding = Charsets.UTF_8.name()
}
withType<Javadoc> {
options.encoding = Charsets.UTF_8.name()
}
2022-02-17 07:58:12 +00:00
withType<JavaCompile> {
options.isDeprecation = true
}
2021-12-11 17:59:45 +00:00
}
}
dependencies {
// implementation(project(":api"))
implementation(project(":galaxy"))
implementation(project(":velocity"))
2022-02-05 20:16:20 +00:00
// implementation("net.kyori", "adventure-text-minimessage", "4.10.0-SNAPSHOT") {
2021-12-11 20:41:19 +00:00
// exclude("net.kyori")
// exclude("net.kyori.examination")
// }
// implementation("org.spongepowered", "configurate-yaml", "4.1.2")
// implementation("mysql:mysql-connector-java:8.0.27") // mysql
2021-12-11 17:59:45 +00:00
}
tasks {
shadowJar {
2022-10-01 16:24:42 +00:00
archiveFileName.set("${project.name}.jar")
2021-12-11 20:41:19 +00:00
minimize() {
exclude { it.moduleName == "galaxy" }
exclude { it.moduleName == "velocity" }
}
2021-12-11 17:59:45 +00:00
listOf(
2022-05-26 22:31:36 +00:00
// "net.kyori.adventure.text.minimessage",
2021-12-11 17:59:45 +00:00
"org.spongepowered.configurate"
// ).forEach { relocate(it, "${rootProject.group}.lib.$it") }
).forEach { relocate(it, "${rootProject.group}.lib.${it.substringAfterLast(".")}") }
2021-12-11 17:59:45 +00:00
}
build {
dependsOn(shadowJar)
}
2022-10-01 16:24:42 +00:00
jar {
enabled = false
}
}