2023-01-01 23:53:37 +01:00
|
|
|
plugins {
|
|
|
|
`java-library`
|
|
|
|
`maven-publish`
|
2023-03-27 00:00:24 +02:00
|
|
|
id("velocity-publish")
|
2023-01-01 23:53:37 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
java {
|
|
|
|
withJavadocJar()
|
|
|
|
withSourcesJar()
|
|
|
|
|
|
|
|
sourceSets["main"].java {
|
|
|
|
srcDir("src/ap/java")
|
|
|
|
}
|
2023-10-29 19:43:06 +01:00
|
|
|
|
2023-01-02 14:23:56 +01:00
|
|
|
sourceSets["main"].resources {
|
|
|
|
srcDir("src/ap/resources")
|
|
|
|
}
|
2023-01-01 23:53:37 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2023-10-27 22:51:53 +02:00
|
|
|
api(libs.gson)
|
|
|
|
api(libs.guava)
|
2023-01-01 23:53:37 +01:00
|
|
|
|
2023-10-27 22:51:53 +02:00
|
|
|
api(platform(libs.adventure.bom))
|
2023-01-01 23:53:37 +01:00
|
|
|
api("net.kyori:adventure-api")
|
|
|
|
api("net.kyori:adventure-text-serializer-gson")
|
|
|
|
api("net.kyori:adventure-text-serializer-legacy")
|
|
|
|
api("net.kyori:adventure-text-serializer-plain")
|
|
|
|
api("net.kyori:adventure-text-minimessage")
|
2023-10-12 19:44:10 +02:00
|
|
|
api("net.kyori:adventure-text-logger-slf4j")
|
|
|
|
api("net.kyori:adventure-text-serializer-ansi")
|
2023-01-01 23:53:37 +01:00
|
|
|
|
2023-10-27 22:51:53 +02:00
|
|
|
api(libs.slf4j)
|
|
|
|
api(libs.guice)
|
|
|
|
api(libs.checker.qual)
|
|
|
|
api(libs.brigadier)
|
|
|
|
api(libs.bundles.configurate)
|
|
|
|
api(libs.caffeine)
|
2023-01-01 23:53:37 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
tasks {
|
|
|
|
jar {
|
|
|
|
manifest {
|
|
|
|
attributes["Automatic-Module-Name"] = "com.velocitypowered.api"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
withType<Javadoc> {
|
|
|
|
exclude("com/velocitypowered/api/plugin/ap/**")
|
|
|
|
|
|
|
|
val o = options as StandardJavadocDocletOptions
|
|
|
|
o.encoding = "UTF-8"
|
|
|
|
o.source = "8"
|
|
|
|
|
|
|
|
o.links(
|
2023-10-29 19:43:06 +01:00
|
|
|
"https://www.slf4j.org/apidocs/",
|
|
|
|
"https://guava.dev/releases/${libs.guava.get().version}/api/docs/",
|
|
|
|
"https://google.github.io/guice/api-docs/${libs.guice.get().version}/javadoc/",
|
|
|
|
"https://docs.oracle.com/en/java/javase/11/docs/api/",
|
|
|
|
"https://jd.advntr.dev/api/${libs.adventure.bom.get().version}/",
|
|
|
|
"https://javadoc.io/doc/com.github.ben-manes.caffeine/caffeine"
|
2023-01-01 23:53:37 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
// Disable the crazy super-strict doclint tool in Java 8
|
|
|
|
o.addStringOption("Xdoclint:none", "-quiet")
|
|
|
|
}
|
|
|
|
}
|