Should .gradle be excluded?

Answered

Should the .gradle folder be excluded? Looks like I can save significant time if I exclude it, but I have no idea if it is an essential part of the indexing process for a gradle project.

0
4 comments

Yes. the .gradle directory should be marked as excluded from project indexing. And IDE does it automatically when creating a or importing new gradle project.

0

Thank you for the answer. I think there may be a bug where "invalidate caches and restart" causes these automatic exclusions to be lost, and I find I have to redo marking each folder as excluded.

0

Another possibility is that it may not be a bug. When I invalidate caches I usually also delete the .gradle folder in conjunction. Maybe deleting the folder is what is causing me to have to re-exclude it. Maybe this is is expected behavior.

0

Scratch that, I just deleted the .gradle folder and invalidated caches now and upon reopening the .gradle folder was still excluded.

0

Please sign in to leave a comment.