buildship
buildship copied to clipboard
Test dependency is added to the main scope
Importing OpenRewrite (https://github.com/openrewrite/rewrite) into eclipse/STS results in a failure due to cycles in the dependencies. However, the cycle is only present because rewrite-test
appears to be added to the main scope.
Expected Behavior
The expected behavior is that buildship would correctly import the project's dependencies. This does work correctly in Intellij and the project is successfully built with Gradle.
This is how the rewrite-groovy
project looks after being imported into IntelliJ:

Current Behavior
After Importing into Eclipse, the rewrite-test
project (along with transitive submodules) are all added to the main scope:

What is strange is that the transitive dependencies (that are not a submodule) appear to be correctly scoped:

Context
This issue prevents our users from being able to use Eclipse/STS to contribute back to our project.
- Clone https://github.com/openrewrite/rewrite to your local machine
- Open Eclipse and attempt to "Import existing Gradle project"
Your Environment
I am able to reproduce this by using STS 4.15.1.RELEASE (202206171354)