Exclude public methods from javadoc

Hi All,
I am new to gradle,
I have a requirement to omit public methods/properties from javadoc creation.
How to achieve the same

Thanks,
Praveen.N