67 lines
1.6 KiB
Plaintext
67 lines
1.6 KiB
Plaintext
plugins {
|
|
`java-library`
|
|
id("com.github.johnrengelman.shadow") version "7.1.0"
|
|
}
|
|
|
|
allprojects {
|
|
group = "com.alttd.chat"
|
|
version = "1.0.0-SNAPSHOT"
|
|
description = "All in one minecraft chat plugin"
|
|
}
|
|
|
|
subprojects {
|
|
apply<JavaLibraryPlugin>()
|
|
|
|
java {
|
|
toolchain {
|
|
languageVersion.set(JavaLanguageVersion.of(17))
|
|
}
|
|
}
|
|
|
|
tasks {
|
|
withType<JavaCompile> {
|
|
options.encoding = Charsets.UTF_8.name()
|
|
}
|
|
|
|
withType<Javadoc> {
|
|
options.encoding = Charsets.UTF_8.name()
|
|
}
|
|
|
|
withType<JavaCompile> {
|
|
options.isDeprecation = true
|
|
}
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
// implementation(project(":api"))
|
|
implementation(project(":galaxy"))
|
|
implementation(project(":velocity"))
|
|
// implementation("net.kyori", "adventure-text-minimessage", "4.10.0-SNAPSHOT") {
|
|
// exclude("net.kyori")
|
|
// exclude("net.kyori.examination")
|
|
// }
|
|
// implementation("org.spongepowered", "configurate-yaml", "4.1.2")
|
|
// implementation("mysql:mysql-connector-java:8.0.27") // mysql
|
|
}
|
|
|
|
tasks {
|
|
|
|
shadowJar {
|
|
archiveFileName.set("${project.name}-${project.version}.jar")
|
|
minimize() {
|
|
exclude { it.moduleName == "galaxy" }
|
|
exclude { it.moduleName == "velocity" }
|
|
}
|
|
listOf(
|
|
"net.kyori.adventure.text.minimessage",
|
|
"org.spongepowered.configurate"
|
|
// ).forEach { relocate(it, "${rootProject.group}.lib.$it") }
|
|
).forEach { relocate(it, "${rootProject.group}.lib.${it.substringAfterLast(".")}") }
|
|
}
|
|
|
|
build {
|
|
dependsOn(shadowJar)
|
|
}
|
|
|
|
} |