Chat/build.gradle.kts

80 lines
2.4 KiB
Plaintext
Raw Normal View History

2021-12-11 17:59:45 +00:00
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"
2022-02-19 14:14:41 +00:00
2022-03-14 15:48:35 +00:00
// repositories {
// mavenCentral()
// maven("https://repo.destro.xyz/snapshots") // Altitude - Galaxy
// maven("https://oss.sonatype.org/content/groups/public/") // Adventure
// maven("https://oss.sonatype.org/content/repositories/snapshots/") // Minimessage
// maven("https://oss.sonatype.org/content/repositories/") // Minimessage
// maven("https://nexus.velocitypowered.com/repository/") // Velocity
// maven("https://nexus.velocitypowered.com/repository/maven-public/") // Velocity
// maven("https://repo.spongepowered.org/maven") // Configurate
// maven("https://repo.extendedclip.com/content/repositories/placeholderapi/") // Papi
// maven("https://jitpack.io")
// }
2021-12-11 17:59:45 +00:00
}
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()
}
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 {
archiveFileName.set("${project.name}-${project.version}.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(
"net.kyori.adventure.text.minimessage",
"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)
}
}