microsoft / microsoft/vscode-java-pack
`java.import.gradle.user.home` Setting not Respected
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 352
- Forks
- 166
- Avg merge
- 17h 47m
- Merged PRs (30d)
- 32
Description
Environment
- VS Code Version:
1.99.22418(Flatpak build) - Extension Version:
vscjava.vscode-java-pack 0.29.0 - JDK Type & Version:
Eclipse Temurin 21.0.7+6.0.LTS - OS Type & Version:
GNU/Linux x64 6.12.23-1-lts #1 SMP PREEMPT_DYNAMIC
Step to Reproduce
- Set
GRADLE_USER_HOMEenvironment variable within the operating system —GRADLE_USER_HOME="/path/to/user-home/.cache/gradle" - Set
"java.import.gradle.user.home": "/path/to/user-home/.cache/gradlein globalsettings.json - Create/Open a Gradle project
Expected Behavior
Gradle processes should use the correct location defined by java.import.gradle.user.home.
Actual Behavior
Gradle processes still default to /path/to/user-home/.gradle
Additional Information
I've also tried to set java.import.gradle.user.home in settings.json at the project level.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the issue with GRADLE_USER_HOME and java.import.gradle.user.home set as described, then trace how the Java extension pack passes Gradle settings to Gradle processes. Done means Gradle processes use the configured cache location rather than the default .gradle path, including when the setting is defined at project level.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, typescript, vscode
- Domain
- build-system, developer-experience
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 45/100