-
Notifications
You must be signed in to change notification settings - Fork 304
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f361adb
commit ebcf6c7
Showing
1 changed file
with
15 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,20 @@ | ||
## Fast Build | ||
|
||
The IntelliJ plugin for Bazel includes the **Fast Build** feature, allowing you to run tests and executables without recompiling the entire target. This feature detects which Java files have changed and compiles only those files, significantly speeding up the development process. | ||
|
||
## Requirements | ||
In order to get fast build working, you have to add some VM options to the IntelliJ setup. | ||
You can go to Help -> Edit custom VM options, and add these entries there: | ||
``` | ||
|
||
To enable Fast Build, you must add specific VM options to your IntelliJ configuration. Follow these steps: | ||
|
||
1. Navigate to **Help** -> **Edit Custom VM Options**. | ||
2. Add the following entries: | ||
|
||
```plaintext | ||
--add-exports=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED | ||
--add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED | ||
--add-exports=jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED | ||
``` | ||
|
||
## How to Use | ||
|
||
To use Fast Build, locate your test or executable in the editor. Click the gutter icon and select either **Fast Run** or **Fast Test**. |