2024-12-11 20:08:24 +00:00
|
|
|
--- a/paper-api/build.gradle.kts
|
|
|
|
+++ b/paper-api/build.gradle.kts
|
|
|
|
@@ -105,6 +_,18 @@
|
|
|
|
main {
|
|
|
|
java {
|
|
|
|
srcDir(generatedApiPath)
|
|
|
|
+ srcDir(file("../paper-api/src/main/java"))
|
|
|
|
+ }
|
|
|
|
+ resources {
|
|
|
|
+ srcDir(file("../paper-api/src/main/resources"))
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ test {
|
|
|
|
+ java {
|
|
|
|
+ srcDir(file("../paper-api/src/test/java"))
|
|
|
|
+ }
|
|
|
|
+ resources {
|
|
|
|
+ srcDir(file("../paper-api/src/test/resources"))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2024-12-21 09:06:32 +00:00
|
|
|
@@ -174,7 +_,7 @@
|
2024-12-11 20:08:24 +00:00
|
|
|
|
|
|
|
tasks.withType<Javadoc> {
|
|
|
|
val options = options as StandardJavadocDocletOptions
|
|
|
|
- options.overview = "src/main/javadoc/overview.html"
|
|
|
|
+ options.overview = "../paper-api/src/main/javadoc/overview.html"
|
|
|
|
options.use()
|
|
|
|
options.isDocFilesSubDirs = true
|
|
|
|
options.links(
|
2024-12-21 09:06:32 +00:00
|
|
|
@@ -212,11 +_,11 @@
|
2024-12-11 20:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// workaround for https://github.com/gradle/gradle/issues/4046
|
|
|
|
- inputs.dir("src/main/javadoc").withPropertyName("javadoc-sourceset")
|
|
|
|
+ inputs.dir("../paper-api/src/main/javadoc").withPropertyName("javadoc-sourceset")
|
|
|
|
val fsOps = services.fileSystemOperations
|
|
|
|
doLast {
|
|
|
|
fsOps.copy {
|
|
|
|
- from("src/main/javadoc") {
|
|
|
|
+ from("../paper-api/src/main/javadoc") {
|
|
|
|
include("**/doc-files/**")
|
|
|
|
}
|
|
|
|
into("build/docs/javadoc")
|