Gradle store on local file system

后端 未结 15 1157
[愿得一人]
[愿得一人] 2020-12-04 05:12

How does Gradle store downloaded jar files on the local file system? Maven stores them in the .m2 directory under USER_HOME, but where does Gradle

15条回答
  •  心在旅途
    2020-12-04 06:19

    Many answers are correct! I want to add that you can easily find your download location with

    gradle --info build
    

    like described in https://stackoverflow.com/a/54000767/4471199.

    New downloaded artifacts will be shown in stdout:

    Downloading https://plugins.gradle.org/m2/org/springframework/boot/spring-boot-parent/2.1.7.RELEASE/spring-boot-parent-2.1.7.RELEASE.pom to /tmp/gradle_download551283009937119777bin
    

    In this case, I used the docker image gradle:5.6.2-jdk12. As you can see, the docker container uses /tmp as download location.

提交回复
热议问题