[ci skip] Resolve apiAndDocs sources during Javadoc task execution rather than during configuration time (#6836)

This commit is contained in:
Jason Penilla
2021-10-26 19:45:45 -07:00
parent 399444abda
commit 15350e1273
3 changed files with 15 additions and 6 deletions

View File

@@ -72,6 +72,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
+}
+
+val generateApiVersioningFile by tasks.registering {
+ inputs.property("version", project.version)
+ val pomProps = layout.buildDirectory.file("pom.properties")
+ outputs.file(pomProps)
+ doLast {
@@ -84,13 +85,13 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
+ into("META-INF/maven/${project.group}/${project.name.toLowerCase(Locale.ENGLISH)}")
+ }
+ manifest {
+ attributes += mapOf(
+ attributes(
+ "Automatic-Module-Name" to "org.bukkit"
+ )
+ }
+}
+
+tasks.withType<Javadoc>().configureEach {
+tasks.withType<Javadoc> {
+ (options as StandardJavadocDocletOptions).links(
+ "https://guava.dev/releases/21.0/api/docs/",
+ "https://javadoc.io/doc/org.yaml/snakeyaml/1.28/",