Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions build-logic/src/main/kotlin/polaris-java.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,9 @@ tasks.withType<Javadoc>().configureEach {
val opt = options as CoreJavadocOptions
// don't spam log w/ "warning: no @param/@return"
opt.addStringOption("Xdoclint:-reference", "-quiet")
if (plugins.hasPlugin("org.kordamp.gradle.jandex")) {
dependsOn("jandex")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why does javadoc have to depend on jandex? Should it not be the task that packages the jar?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Jandex writes to resources, which is "consumed" by javadoc

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TIL 👍

}
}

tasks.register("printRuntimeClasspath").configure {
Expand Down