Should the .gradle folder be added to version control?

后端 未结 5 2054
被撕碎了的回忆
被撕碎了的回忆 2021-01-31 06:48

Gradle creates a folder called .gradle. Should I track it with my version control (i.e. git)?

More importantly, why / why not?

5条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-31 07:20

    when we start the gradle it create the .gradle folder inside your home directory. It consist of native (information about your system) and caches. Caches further consist of plugins and all other jars dependencies.

    When we build the the project first time at that time it download dependencies and plugins and cheched them here. next time when we need them it, it get from here. even when we need them in eclipse to compile the code (=>gradle eclipse), its dependencies are added from cache

    As it will keep updating and adding when you run gradle. so i guess we do not added it to version control.

提交回复
热议问题