microsoft / microsoft/vscode-java-pack

`java.import.gradle.user.home` Setting not Respected

Open
#1,425 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

ai-triaged bug
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_HOME environment 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/gradle in global settings.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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.