Skip to content
Merged
Show file tree
Hide file tree
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
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,9 @@ class SupportedConfigPlugin : Plugin<Project> {
sourceset.configure {
java.srcDir(generateTask)
}

targetProject.tasks.named("javadoc") {
Copy link
Contributor

Choose a reason for hiding this comment

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

thought: Making javadoc depends on generate task seems odd, have you tried with processResources ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@bric3 Hmm that didn't seem to work. I noticed in the task ordering of assemble that utils:config-utils:javadoc executes after both generateSupportedConfigurations and processResources. Do you have any ideas on why this still doesn't work?

Copy link
Contributor

Choose a reason for hiding this comment

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

Nothing comes immediately to mind, I need to look into that.

task ordering

You should think in terms of graph, or task dependencies :)

dependsOn(generateTask)
}
}
}
4 changes: 0 additions & 4 deletions utils/config-utils/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,3 @@ dependencies {
testImplementation(project(":utils:test-utils"))
testImplementation("org.snakeyaml:snakeyaml-engine:2.9")
}

tasks.named("javadoc") {
dependsOn("generateSupportedConfigurations")
}