mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-08 16:12:18 -07:00
Implement Translatable in appropriate places (#6248)
This commit is contained in:
@@ -15,6 +15,17 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
}
|
||||
|
||||
+val adventureVersion = "4.8.1"
|
||||
+val apiAndDocs by configurations.creating {
|
||||
+ attributes {
|
||||
+ attribute(Category.CATEGORY_ATTRIBUTE, objects.named(Category.DOCUMENTATION))
|
||||
+ attribute(Bundling.BUNDLING_ATTRIBUTE, objects.named(Bundling.EXTERNAL))
|
||||
+ attribute(DocsType.DOCS_TYPE_ATTRIBUTE, objects.named(DocsType.SOURCES))
|
||||
+ attribute(Usage.USAGE_ATTRIBUTE, objects.named(Usage.JAVA_RUNTIME))
|
||||
+ }
|
||||
+}
|
||||
+configurations.api {
|
||||
+ extendsFrom(apiAndDocs)
|
||||
+}
|
||||
+
|
||||
dependencies {
|
||||
// api dependencies are listed transitively to API consumers
|
||||
@@ -23,15 +34,21 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
api("org.yaml:snakeyaml:1.28")
|
||||
api("com.googlecode.json-simple:json-simple:1.1.1") // Paper
|
||||
api("it.unimi.dsi:fastutil:8.2.2")
|
||||
+ api(platform("net.kyori:adventure-bom:$adventureVersion"))
|
||||
+ 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")
|
||||
+ apiAndDocs(platform("net.kyori:adventure-bom:$adventureVersion"))
|
||||
+ apiAndDocs("net.kyori:adventure-api")
|
||||
+ apiAndDocs("net.kyori:adventure-text-serializer-gson")
|
||||
+ apiAndDocs("net.kyori:adventure-text-serializer-legacy")
|
||||
+ apiAndDocs("net.kyori:adventure-text-serializer-plain")
|
||||
|
||||
compileOnly("org.apache.maven:maven-resolver-provider:3.8.1")
|
||||
compileOnly("org.apache.maven.resolver:maven-resolver-connector-basic:1.7.0")
|
||||
@@ -0,0 +0,0 @@ tasks.withType<Javadoc>().configureEach {
|
||||
@@ -0,0 +0,0 @@ tasks.jar {
|
||||
}
|
||||
|
||||
tasks.withType<Javadoc>().configureEach {
|
||||
+ (options as CoreJavadocOptions).addStringOption("sourcepath", apiAndDocs.resolvedConfiguration.files.joinToString(separator = File.pathSeparator, transform = File::getPath))
|
||||
(options as StandardJavadocDocletOptions).links(
|
||||
"https://guava.dev/releases/21.0/api/docs/",
|
||||
"https://javadoc.io/doc/org.yaml/snakeyaml/1.28/",
|
||||
"https://javadoc.io/doc/org.jetbrains/annotations/21.0.1/", // Paper - we don't want Java 5 annotations
|
||||
"https://javadoc.io/doc/net.md-5/bungeecord-chat/1.16-R0.4/",
|
||||
|
Reference in New Issue
Block a user