mirror of
https://github.com/proxiodev/RedisBungee.git
synced 2024-11-05 04:48:02 +00:00
72 lines
2.1 KiB
Plaintext
72 lines
2.1 KiB
Plaintext
|
plugins {
|
||
|
`java-library`
|
||
|
`maven-publish`
|
||
|
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")) {
|
||
|
// Since velocity already includes guava / configurate exlude them
|
||
|
exclude("com.google.guava", "guava")
|
||
|
exclude("com.google.code.gson", "gson")
|
||
|
exclude("org.spongepowered", "configurate-yaml")
|
||
|
}
|
||
|
compileOnly("com.velocitypowered:velocity-api:3.2.0-SNAPSHOT")
|
||
|
annotationProcessor("com.velocitypowered:velocity-api:3.2.0-SNAPSHOT")
|
||
|
}
|
||
|
|
||
|
description = "RedisBungee Velocity implementation"
|
||
|
|
||
|
java {
|
||
|
withJavadocJar()
|
||
|
withSourcesJar()
|
||
|
}
|
||
|
|
||
|
tasks {
|
||
|
withType<Javadoc> {
|
||
|
val options = options as StandardJavadocDocletOptions
|
||
|
options.use()
|
||
|
options.isDocFilesSubDirs = true
|
||
|
options.links(
|
||
|
"https://jd.papermc.io/velocity/3.0.0/", // velocity api
|
||
|
)
|
||
|
}
|
||
|
runVelocity {
|
||
|
velocityVersion("3.2.0-SNAPSHOT")
|
||
|
}
|
||
|
compileJava {
|
||
|
options.encoding = Charsets.UTF_8.name()
|
||
|
options.release.set(11)
|
||
|
}
|
||
|
javadoc {
|
||
|
options.encoding = Charsets.UTF_8.name()
|
||
|
}
|
||
|
processResources {
|
||
|
filteringCharset = Charsets.UTF_8.name()
|
||
|
}
|
||
|
shadowJar {
|
||
|
relocate("redis.clients.jedis", "com.imaginarycode.minecraft.redisbungee.internal.jedis")
|
||
|
relocate("redis.clients.util", "com.imaginarycode.minecraft.redisbungee.internal.jedisutil")
|
||
|
relocate("org.apache.commons.pool", "com.imaginarycode.minecraft.redisbungee.internal.commonspool")
|
||
|
relocate("com.squareup.okhttp", "com.imaginarycode.minecraft.redisbungee.internal.okhttp")
|
||
|
relocate("okio", "com.imaginarycode.minecraft.redisbungee.internal.okio")
|
||
|
relocate("org.json", "com.imaginarycode.minecraft.redisbungee.internal.json")
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|
||
|
publishing {
|
||
|
publications {
|
||
|
create<MavenPublication>("maven") {
|
||
|
from(components["java"])
|
||
|
}
|
||
|
}
|
||
|
}
|