Skip to content

Local Gradle install is not used when java.import.gradle.home is set #1004

@brendansailer

Description

@brendansailer

Extension Name: vscode-gradle
Extension Version: 3.6.1
OS Version: Centos 7
VSCode version: 1.54.3

Describe the bug
Despite having java.import.gradle.home set to my local directory which has a Gradle 5.6.4 installed, it tries to download Gradle from the internet.

To Reproduce
Set java.import.gradle.wrapper.enabled to false, java.import.gradle.home to the proper directory, and java.import.gradle.version to the proper version. Then reload your window and it'll still download Gradle. If you leave off the version setting, you get an error so I believe that's required.

Expected behavior
Use my local Gradle install first rather than reaching out to the internet.

Output from "Gradle Tasks"
The first three lines are it connecting to the server and trying to download Gradle.

Does the bug still exist if you disable all other extensions?
Yes

Thanks for the help! I couldn't figure out how to get an account on Slack, so I posted an issue here. Also it'd be nice to have the extension enabled when it detects a build.gradle file and you have the wrapper disabled. Good first issue?

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingenhancementNew feature or request

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions