gradle: Set GRADLE_USER_HOME and persist .gradle (#4103)

Set the environment variable GRADLE_USER_HOME to the .gradle directory and persist this directory as per https://docs.gradle.org/current/userguide/build_environment.html
This commit is contained in:
ooknight 2022-11-15 18:00:06 +08:00 committed by GitHub
parent e55241a7e4
commit 42488153cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 1 deletions

View File

@ -9,6 +9,10 @@
"url": "https://services.gradle.org/distributions/gradle-7.5.1-bin.zip",
"hash": "f6b8596b10cce501591e92f229816aa4046424f3b24d771751b06779d58c8ec4",
"extract_dir": "gradle-7.5.1",
"env_set": {
"GRADLE_USER_HOME": "$dir\\.gradle"
},
"persist": ".gradle",
"bin": "bin\\gradle.bat",
"checkver": {
"url": "https://gradle.org/install/",

View File

@ -1,6 +1,6 @@
{
"version": "7.5.1",
"description": "An open-source build automation tool focused on flexibility and performance. (Source code and documentation boundled)",
"description": "An open-source build automation tool focused on flexibility and performance. (Source code and documentation bundled)",
"homepage": "https://gradle.org",
"license": "Apache-2.0",
"suggest": {
@ -9,6 +9,10 @@
"url": "https://services.gradle.org/distributions/gradle-7.5.1-all.zip",
"hash": "db9c8211ed63f61f60292c69e80d89196f9eb36665e369e7f00ac4cc841c2219",
"extract_dir": "gradle-7.5.1",
"env_set": {
"GRADLE_USER_HOME": "$dir\\.gradle"
},
"persist": ".gradle",
"bin": "bin\\gradle.bat",
"checkver": {
"url": "https://gradle.org/install/",