Visitar URL original
`java.import.gradle.user.home` Setting not Respected · Issue #1425 · microsoft/vscode-java-pack · GitHub
Skip to content

java.import.gradle.user.home Setting not Respected #1425

Description

@x80486

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.

Activity

  1. github-actions commented on Sep 3, 2025

    @github-actions

    Hi x80486, I'm an AI Support assistant here to help with your issue. While the team reviews your request, I wanted to provide some possible tips and documentation that might help you in the meantime.

    This issue is related to Java tooling, specifically the VS Code Java extension's handling of the java.import.gradle.user.home setting for Gradle cache location.

    Solution and High Confidence References:

    • According to this comment, the only supported ways to configure GRADLE_USER_HOME are:

      • Setting the environment variable GRADLE_USER_HOME
      • Setting "java.import.gradle.user.home" in your settings.json

      If both are set and the extension still defaults to the wrong location, it may be a bug or limitation in the extension. The comment also notes that configuring this via terminal settings in settings.json will not work due to changes in how the Gradle server is started.

    • This issue comment clarifies that java.import.gradle.user.home is specifically for the Gradle cache directory, and should be respected by the extension. If it is not, this may indicate a bug.

    Other references with high confidence worth checking:

    Other references with low confidence

    Other references with low confidence

    The team will respond to your issue shortly. I hope these suggestions are helpful in the meantime. If this comment helped you, please give it a 👍. If the suggestion was not helpful or incorrect, please give it a 👎. Your feedback helps us improve!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions