Excluding aidl generated source in Javadoc

I tried your code. Thank you very much for your suggestion. I substituted the line “source subprojectsWithJavadoc.javadoc.source” in the above code with your suggestion. Is that where I should have put this?

I got this error:

  • Where:
    Script ‘/Users/Shared/Jenkins/Home/workspace/aeroglass-branch-javadoc/gradle/aggregateJavadocs.gradle’ line: 21

  • What went wrong:
    No signature of method: java.util.ArrayList.matching() is applicable for argument types: (AeroGlassAggregateJavadocPlugin$_apply_closure1_closure3_closure4) values: [AeroGlassAggregateJavadocPlugin$_apply_closure1_closure3_closure4@60c69660]

Did I copy something wrong maybe?