Different versions of gradle creating .gradle directory with different permissions level

I noticed that based on the version of the gradlew used, the permission levels given to .gradle directory is different.

For example,

6.9 creates with drwxr-xr-x@ level,

8x version creates with drwx------ level

7.6 creates with drwxr-xr-x level

My question is

  1. why
  2. what is the minimum permission level required at .gradle directory level for gradle commands to work