buildship icon indicating copy to clipboard operation
buildship copied to clipboard

Eclipse does not correct resolve test-fixtures-sources

Open cherni78 opened this issue 3 years ago • 1 comments

I would like to resolve source code from published test-fixtures. But Eclipse resolves library-version-sources.jar instead of library-version-test-fixtures-sources.jar

Expected Behavior

Eclipse should resolve test-fixtures-sources with library-version-test-fixtures-sources.jar

Current Behavior

Eclipse resolves test-fixtures-sources with library-version-sources.jar

Context

I'm not able to see the source code of the test-fixtures from the provided library in Eclipse. This makes debugging impossible.

Steps to Reproduce

Publish a library with test-fixtures and test-fixtures-sources. Resolve this published library from another project and try to open one of the Java-Classes from the test-fixtures. Than you will find under: Project Properties / Java Build Path / Libraries / Classpath / Project and External Dependencies the library and as Source attachment: the library-version-sources.jar instead of library-version-test-fixtures-sources.jar

Your Environment

Eclipse Version: 2022-09 (4.25.0) Build id: 20220908-1902 Buildship Version: 3.1.6.v20220511-1359 Gradle Version: 7.5.2 | 7.6 (doesn't matter)

cherni78 avatar Dec 06 '22 09:12 cherni78

Same here with Eclipse 2022-12 and Gradle 7.5.1 and 3.1.6.v20220511-1359

Update: also with latest snapshot Buildship: Eclipse Plug-ins for Gradle 3.1.7.v20230209-0740-s it fails

realwuffi avatar Feb 09 '23 16:02 realwuffi