I have used above script in my build.gradle,I am unable to check headers in sourceset ,to write header in all missing (groovy,java) files.Please any one suggest me.I Will thanks a lot…
It’d be easier to read your code if it was properly formatted with code tags. It looks like you’re not putting the license block in allprojects. Though it should without that.
ext.year = Calendar.getInstance().get(Calendar.YEAR) } but when i Run gradle build not updating headers in src/main/groovy files. Can you give me the build.gradle script to add headers in src/main/groovy files.
and when i run gradle licenseFormatMain getting error
FAILURE: Could not determine which tasks to execute.
What went wrong: Task ‘licenseFormatMain’ not found in root project ’