vscode-java
vscode-java copied to clipboard
Gradle "includeBuild" no longer recognizes imported classes in the IDE
When utilizing "includeBuild" in the settings.gradle file, the IDE no longer recognizes java imports/objects from the included project. Compiling in gradle via the command line continues to work as expected.
Environment
- Operating System: Windows
- JDK version: 1.8/17
- Visual Studio Code version: 1.88.1
- Java extension version: 1.29
Steps To Reproduce
- Run
gradle init
to generate a java library called 'inc1' - Run
gradle init
to generate a java library called 'inc2' - Add 'group="inc2"' to inc2 build.gradle
- Add
includeBuild '..\\inc2'
to the inc1 settings.gradle file - Add
implementation "inc2:lib:1.0.0"
to inc1 build.gradle dependencies - Create class Lib2.java in the inc2 project
- Import and instantiate the Lib2 object in the inc1 project
- Run
gradle assemble
in inc1 and verify success - Open inc1 in VSCode and verify it can not locate the Lib2 object
Current Result
The Lib2 import cannot be resolved in VSCode
Expected Result
The Lib2 import can be resolved in VSCode