Skip to content

Commit a1519cf

Browse files
snjezafbricon
authored andcommitted
Optionally disable loading gradle from gradle wrapper
Signed-off-by: Snjezana Peco <[email protected]>
1 parent 91e7e42 commit a1519cf

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-2
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,10 @@ The following settings are supported:
109109
* `java.codeGeneration.toString.listArrayContents`: List contents of arrays instead of using native toString(). Defaults to `true`.
110110
* `java.codeGeneration.toString.limitElements`: Limit number of items in arrays/collections/maps to list, if 0 then list all. Defaults to `0`.
111111

112+
*New in 0.45.0:*
113+
* `java.import.gradle.wrapper.enabled`: Enable/disable the Gradle wrapper.
114+
* `java.import.gradle.version`: Gradle version, used if the gradle wrapper is missing or disabled.
115+
112116
Troubleshooting
113117
===============
114118
1. Check the status of the language tools on the lower right corner (marked with A on image below).

package.json

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,16 +114,28 @@
114114
"description": "Traces the communication between VS Code and the Java language server.",
115115
"scope": "window"
116116
},
117+
"java.import.maven.enabled": {
118+
"type": "boolean",
119+
"default": true,
120+
"description": "Enable/disable the Maven importer.",
121+
"scope": "window"
122+
},
117123
"java.import.gradle.enabled": {
118124
"type": "boolean",
119125
"default": true,
120126
"description": "Enable/disable the Gradle importer.",
121127
"scope": "window"
122128
},
123-
"java.import.maven.enabled": {
129+
"java.import.gradle.wrapper.enabled": {
124130
"type": "boolean",
125131
"default": true,
126-
"description": "Enable/disable the Maven importer.",
132+
"description": "Enable/disable the Gradle wrapper.",
133+
"scope": "window"
134+
},
135+
"java.import.gradle.version": {
136+
"type": "string",
137+
"default": null,
138+
"description": "Gradle version, used if the gradle wrapper is missing or disabled.",
127139
"scope": "window"
128140
},
129141
"java.maven.downloadSources": {

0 commit comments

Comments
 (0)