eclipse / buildship

The Eclipse Plug-ins for Gradle project.
528 stars 167 forks source link

Importing java-library builds via "Projects from Folder or Archive" does not work correctly #1288

Closed oleosterhagen closed 7 months ago

oleosterhagen commented 7 months ago

Expected Behavior

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:

  1. As source folders of subproject lib (this is right)
  2. As source folders of the root project (this is wrong)

The incorrectly created folders are selected in the following screenshot:

grafik

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

  1. Generate a java-library build: ~/gradle-8.5/bin/gradle init --type java-library
  2. File > Import: General > Projects from Folder or Archive
  3. Enter Import source directory and press Finish

Your Environment

Platform: Linux Eclipse: 2023-12 Buildship: 3.1.8