Open
Description
[provide a description of the issue]
Environment
- Operating System: MacOs
- JDK version: 17
- Visual Studio Code version: 1.93.1
- Java extension version: v1.34.0
Steps To Reproduce
The gradle project. If there is a dependency on another module in a multi-module project with scope test, then this dependency falls into the main classpath.
Current Result
In build.gradle.kts
testImplementation(project(":backend:core:model"))
testImplementation(project(":backend:core:ports"))
In .classpath of this module
<classpathentry kind="src" path="/ports">
<attributes>
<attribute name="gradle.buildServer" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="src" path="/model">
<attributes>
<attribute name="gradle.buildServer" value="true"/>
</attributes>
</classpathentry>
Expected Result
In .classpath of this module
<classpathentry kind="src" path="/ports">
<attributes>
<attribute name="test" value="true"/>
<attribute name="gradle.buildServer" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="src" path="/model">
<attributes>
<attribute name="test" value="true"/>
<attribute name="gradle.buildServer" value="true"/>
</attributes>
</classpathentry>
Additional Informations
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Metadata
Assignees
Labels
No labels