You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+24-24Lines changed: 24 additions & 24 deletions
Original file line number
Diff line number
Diff line change
@@ -30,23 +30,14 @@ Gradle Build Helper is a Visual Studio Code extension that simplifies running Gr
30
30
2. Type and select `Gradle Build Helper`.
31
31
3. Select a directory (if multi-project is enabled).
32
32
4. Choose a Gradle task to execute.
33
-
5. If the selected task includes `with profile`, select one from the available profiles. The selected task will be executed with the profile appended, e.g., `-Pprofile=dev`.
33
+
5. If the selected task includes `$profile`, select one from the available profiles. The selected task will be executed with the profile appended, e.g., `-Pprofile=dev`.
34
34
35
35
---
36
36
37
37
## Configuration
38
38
39
39
This extension provides the following configurable options:
40
40
41
-
### Build Command
42
-
**Property**: `gradle.build.helper.command`
43
-
44
-
-**Type**: `string`
45
-
-**Default**: `gradlew`
46
-
-**Description**: Default build command used by the extension.
@@ -61,7 +52,7 @@ This extension provides the following configurable options:
61
52
62
53
-**Type**: `array`
63
54
-**Default**: `["css", "dev"]`
64
-
-**Description**: List of available Gradle profiles. If a task includes `with profile`, you will be prompted to select a profile, and the task will be executed with the selected profile, e.g., `-Pprofile=dev`.
55
+
-**Description**: List of available Gradle profiles. If a task includes `$profile`, you will be prompted to select a profile, and the task will be executed with the selected profile, e.g., `-Pprofile=dev`.
65
56
66
57
---
67
58
@@ -72,15 +63,25 @@ This extension provides the following configurable options:
72
63
-**Default**:
73
64
```json
74
65
[
75
-
"build",
76
-
"clean build",
77
-
"clean",
78
-
"clean build with profile",
79
-
"appRun"
66
+
"gradlew build",
67
+
"gradlew clean build",
68
+
"gradlew build -t",
69
+
"gradlew clean",
70
+
"gradlew clean build $profile",
71
+
"gradlew appRun"
80
72
]
81
73
```
82
-
-**Description**: List of available Gradle tasks. Tasks containing `with profile` will require selecting a profile before execution, and the command will be modified to include the profile, e.g., `-Pprofile=dev`.
74
+
-**Description**: List of available Gradle tasks. Tasks containing `$profile` will require selecting a profile before execution, and the command will be modified to include the profile, e.g., `-Pprofile=dev`.
75
+
76
+
- Note: If you are using MacOS or Linux, replace gradlew with ./gradlew in the task list. For example:
83
77
78
+
```json
79
+
[
80
+
"./gradlew build",
81
+
"./gradlew clean build",
82
+
...
83
+
]
84
+
```
84
85
---
85
86
86
87
### Excluded Directories
@@ -99,14 +100,13 @@ Add the following configuration to your VS Code `settings.json` file to customiz
0 commit comments