Skip to content

Commit

Permalink
Fix renderJavaDoc task dependencies for platform
Browse files Browse the repository at this point in the history
  • Loading branch information
malliaridis committed Jan 3, 2025
1 parent 41ca82c commit 721f0aa
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions gradle/documentation/render-javadoc.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@ configure(project(":solr:test-framework")) {
// Disable Javadoc rendering for these projects.
configure(subprojects.findAll {
it.path in [
':platform',
':solr:solr-ref-guide',
':solr:server',
':solr:webapp']
Expand All @@ -193,6 +194,10 @@ configure(subprojects) {
task.project.configurations.implementation.allDependencies.withType(ProjectDependency).collect { dep ->
def otherProject = dep.dependencyProject
return otherProject.tasks.findByName(task.name)
}.findAll {
// Do not depend on disabled tasks or tasks that do not exist
// :platform module does not have a renderJavaDoc and therefore task is null
it != null && it.enabled == true
}
}
}
Expand Down

0 comments on commit 721f0aa

Please sign in to comment.