microsoft/vscode-gradle

one file change rebuilds whole project

Opened this issue · 2 comments

Extension Name: vscode-gradle
Extension Version: v3.16.2024082806 (pre-release)
OS Version: ubuntu 20 (dev container)
VSCode version: 1.92.1

After changing just one source file, the entire project is rebuilt taking a few minutes. I can see messages in the bottom bar traversing the whole code base. If I try the same with ./gradlew assemble it only compiles the changed file and takes just 7 seconds. I assume build cache should work the same in both places. Is there any way to see what gradle operations the build server is doing to help debug this?

jdneo commented

Build server won't build the project on source file change events I think.

What messages did you see in the status bar?

Build server won't build the project on source file change events I think.

What messages did you see in the status bar?

Is there a way to set up the Gradle server to automatically update or compile to the build directory after resource and code changes please? Manually building every time is really cumbersome. Thank you!