Use gradle as a build tool

This commit is contained in:
destro174
2021-12-11 21:41:19 +01:00
parent 5b68a0cbb7
commit 2ce84244e8
4 changed files with 49 additions and 9 deletions
+24 -2
View File
@@ -1,11 +1,33 @@
plugins {
`maven-publish`
id("com.github.johnrengelman.shadow")
}
dependencies {
implementation(project(":api")) // API
compileOnly("com.velocitypowered:velocity-api:3.0.0") // Velocity
annotationProcessor("com.velocitypowered:velocity-api:3.0.0")
implementation("mysql:mysql-connector-java:8.0.23") // mysql
compileOnly("net.kyori:adventure-text-minimessage:4.1.0-SNAPSHOT") // Minimessage
implementation("mysql:mysql-connector-java:8.0.27") // mysql
implementation("org.spongepowered", "configurate-yaml", "4.1.2")
implementation("net.kyori", "adventure-text-minimessage", "4.1.0-SNAPSHOT") {
exclude("net.kyori")
exclude("net.kyori.examination")
}
}
tasks {
shadowJar {
archiveFileName.set("${project.name}-${project.version}.jar")
// minimize()
listOf(
"net.kyori.adventure.text.minimessage",
"org.spongepowered.configurate"
).forEach { relocate(it, "${rootProject.group}.lib.$it") }
}
build {
dependsOn(shadowJar)
}
}