Set Gradle Cache Directory? -
is possible set gradle cache directory, without having set gradle_user_home environment variable? gradle cache exist in same workspace code, seems possible bash script wrapped around gradle.
to clarify, i'm talking gradle cache contains resolved dependency files.
i think might useful - appendix d. gradle command line
--project-cache-dir
specifies project-specific cache directory. default value .gradle in root project directory.
--gradle-user-home
specifies gradle user home directory. default .gradle directory in user's home directory
snippet of in action - tested locally:
c:\dev\ws\nyssis-intellij\ear>gradle --gradle-user-home c:\dev\cache-test build build initialized use p12_2014_03_31e-windows-models.jar choicemaker model :compilejava up-to-date :compilegroovy up-to-date :processresources up-to-date :classes up-to-date :web:compilejava up-to-date :web:compilegroovy download https://repo1.maven.org/maven2/org/codehaus/groovy/groovy-all/2.4.6/groovy-all-2.4.6.pom download https://repo1.maven.org/maven2/org/springframework/spring-webmvc/3.2.15.release/spring-webmvc-3.2.15.release.pom download https://repo1.maven.org/maven2/org/springframework/spring-jdbc/3.2.15.release/spring-jdbc-3.2.15.release.pom download https://repo1.maven.org/maven2/org/springframework/spring-context-support/3.2.15.release/spring-context-support-3.2.15.release.pom
Comments
Post a Comment