The Java source folders src/main/java and src/test/java from subproject lib are imported only once.
Current Behavior
The source folders are imported two times:
As source folders of subproject lib (this is right)
As source folders of the root project (this is wrong)
The incorrectly created folders are selected in the following screenshot:
Context
Only the import with automatic project detection (introduced with https://github.com/eclipse/buildship/pull/1219) is affected. Import via Gradle > Existing Gradle Project works correctly.
Steps to Reproduce
Generate a java-library build: ~/gradle-8.5/bin/gradle init --type java-library
File > Import: General > Projects from Folder or Archive
Expected Behavior
The Java source folders
src/main/java
andsrc/test/java
from subprojectlib
are imported only once.Current Behavior
The source folders are imported two times:
lib
(this is right)The incorrectly created folders are selected in the following screenshot:
Context
Only the import with automatic project detection (introduced with https://github.com/eclipse/buildship/pull/1219) is affected. Import via Gradle > Existing Gradle Project works correctly.
Steps to Reproduce
~/gradle-8.5/bin/gradle init --type java-library
Your Environment
Platform: Linux Eclipse: 2023-12 Buildship: 3.1.8