mirror of
https://github.com/PaperMC/Paper.git
synced 2025-07-25 17:22:02 -07:00
[ci skip] Resolve apiAndDocs sources during Javadoc task execution rather than during configuration time (#6836)
This commit is contained in:
@@ -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/",
|
||||
|
Reference in New Issue
Block a user