2
0
mirror of https://github.com/proxiodev/RedisBungee.git synced 2026-04-08 16:10:26 +00:00

move all depeneds management into settings.gradle.kts and include acf lib

This commit is contained in:
2024-04-13 23:57:00 +04:00
parent 41b5bde55c
commit 86f64ab019
5 changed files with 92 additions and 438 deletions

View File

@@ -1,16 +1,11 @@
plugins {
`java-library`
`maven-publish`
checkstyle
id("com.github.johnrengelman.shadow") version "8.1.1"
id("xyz.jpenilla.run-velocity") version "2.0.0"
}
repositories {
mavenCentral()
maven { url = uri("https://repo.papermc.io/repository/maven-public/") }
}
dependencies {
api(project(":RedisBungee-API")) {
@@ -24,10 +19,11 @@ dependencies {
exclude("net.kyori", "adventure-text-serializer-legacy")
exclude("net.kyori", "adventure-text-serializer-plain")
exclude("net.kyori", "adventure-text-minimessage")
}
compileOnly("com.velocitypowered:velocity-api:3.3.0-SNAPSHOT")
annotationProcessor("com.velocitypowered:velocity-api:3.3.0-SNAPSHOT")
compileOnly(libs.platform.velocity)
annotationProcessor(libs.platform.velocity)
implementation(libs.acf.velocity)
}
description = "RedisBungee Velocity implementation"
@@ -36,10 +32,6 @@ java {
withJavadocJar()
withSourcesJar()
}
checkstyle {
toolVersion = "10.12.3"
}
tasks {
withType<Javadoc> {
@@ -75,6 +67,8 @@ tasks {
relocate("okio", "com.imaginarycode.minecraft.redisbungee.internal.okio")
relocate("org.json", "com.imaginarycode.minecraft.redisbungee.internal.json")
relocate("com.github.benmanes.caffeine", "com.imaginarycode.minecraft.redisbungee.internal.caffeine")
// acf shade
relocate("co.aikar.commands", "com.imaginarycode.minecraft.redisbungee.internal.acf.commands")
}
}