You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Our projects often times have integration tests and we use a Gradle configuration called integrationTest. The source for these tests is usually located in a src/integrationTest/java directory. Example:
Right now, this means that IntelliSense will not be able to find symbols from the junit-jupiter dependency while editing code in the integrationTest directory. It appears to treat these source files as part of the default configuration.
Since you're using custom configurations/dependencies in your build.gradle, and the gradle tooling buildship used by vscode java extension doesn't recognize it by default. You have to add a line like eclipse.classpath.plusConfigurations << configurations.integrationTestImplementation to your build.gradle. Learn more from FAQ at buildship and eclipse-buildship/buildship#371.
Activity
testforstephen commentedon Feb 22, 2021
Since you're using custom configurations/dependencies in your build.gradle, and the gradle tooling buildship used by vscode java extension doesn't recognize it by default. You have to add a line like
eclipse.classpath.plusConfigurations << configurations.integrationTestImplementationto your build.gradle. Learn more from FAQ at buildship and eclipse-buildship/buildship#371.