buildship icon indicating copy to clipboard operation
buildship copied to clipboard

Test dependency is added to the main scope

Open tkvangorder opened this issue 2 years ago • 0 comments

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:

Screen Shot 2022-06-27 at 11 34 57 AM

Current Behavior

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

Screen Shot 2022-06-27 at 11 36 54 AM

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

image

Context

This issue prevents our users from being able to use Eclipse/STS to contribute back to our project.

  1. Clone https://github.com/openrewrite/rewrite to your local machine
  2. 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)

tkvangorder avatar Jun 27 '22 19:06 tkvangorder