Describe the Bug
I have a multi-project gradle build.
Project ‘webapp’ depends on project ‘common’.
If I do a ‘Java: Clean Java Language Workspace’ the operation fails unless I then run the gradle jar task on the common project.
If I change something in the common project I have to remember to re-run the gradle common jar task in order to make it available to the webapp project.
I shouldn’t have to micro-manage the build between the two projects in this way:
the ‘clean workspace’ command should automatically rebuild the two projects without me having to interleave gradle tasks.
It seems to me that the problem is down to mixing build products from the redhat Language Support for Java extension and the Gradle build, and the solution is for the classpath for webapp to refer directly to the redhat product of the common project rather than to the gradle product.
I note that the current classpath appears to refer to both the project and to the gradle generated jar file, which suggests some confusion as to how it is supposed to work. Indeed, if I manually remove the common jar from the classpath (but keeping the common project) the rebuild succeeds, but this is not a viable work-around as at some point the original classpath will be re-instated based on the gradle project definitions.
Steps to Reproduce
Configure a two-project build where B depends on A.
Clean all gradle projects (equivalent to deleting the build directories in each project).
Run the ‘Java: Clean Java Language Workspace’ command.
The automatic java build fails complaining that B can’t be built because A.jar doesn’t exist.
Edit the java classpath to remove the A.jar library.
The build will re-start and will be successful.
Touch one of the build.gradle files.
The build will re-start and will fail again, citing the missing A.jar library file.
Expected Behavior
The ‘Java: Clean Java Language Workspace’ command should rebuild multi-project gradle projects without manual intervention and without running any gradle tasks.
Operating System
Windows 10/11
Version Information
Version: 3.10.17 (user setup)
VS Code Extension API: 1.125.0
Commit: c89f45b831621cdc5e951694db44fecd8fab1150
Date: 2026-07-05T06:39:45.228Z
Layout: IDE
Build Type: Stable
Release Track: Default
Electron: 40.10.3
Chromium: 144.0.7559.236
Node.js: 24.15.0
V8: 14.4.258.32-electron.0
xterm.js: 6.1.0-beta.256
OS: Windows_NT x64 10.0.26200
Does this stop you from using Cursor
No - Cursor works, but with this issue

