Open NiklasRosenstein opened 3 years ago
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 https://github.com/eclipse/buildship/issues/371.
Our projects often times have integration tests and we use a Gradle configuration called
integrationTest
. The source for these tests is usually located in asrc/integrationTest/java
directory. Example:In
my-subproject/build.gradle
the dependencies are defined akin toRight now, this means that IntelliSense will not be able to find symbols from the
junit-jupiter
dependency while editing code in theintegrationTest
directory. It appears to treat these source files as part of thedefault
configuration.