Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content

Should the '.gradle' folder be removed from source control for the easy-installer?

Summary

The sources of the easy-installer contain the .gradle subfolder which as far as I know is not meant to be added to source control.

The problem

By just executing gradle tasks, I end up with a lot of modified files in git status:

        modified:       .gradle/4.10.2/fileContent/annotation-processors.bin
        modified:       .gradle/4.10.2/fileContent/fileContent.lock
        modified:       .gradle/4.10.2/fileHashes/fileHashes.bin
        modified:       .gradle/4.10.2/fileHashes/fileHashes.lock
        modified:       .gradle/4.10.2/fileHashes/resourceHashesCache.bin
        modified:       .gradle/4.10.2/javaCompile/classAnalysis.bin
        modified:       .gradle/4.10.2/javaCompile/jarAnalysis.bin
        modified:       .gradle/4.10.2/javaCompile/javaCompile.lock
        modified:       .gradle/4.10.2/javaCompile/taskHistory.bin
        modified:       .gradle/4.10.2/taskHistory/taskHistory.bin
        modified:       .gradle/4.10.2/taskHistory/taskHistory.lock
        modified:       .gradle/buildOutputCleanup/buildOutputCleanup.lock
        modified:       .gradle/buildOutputCleanup/outputFiles.bin

From what I understand, the .gradle subfolder gets created and populated by using the gradle wrapper gradlew automatically, so no need to add it to the sources.

It's not a big problem, but I always undo all changes in .gradle before I commit relevant changes in order to not accidentally commit something there.