redhat-developer / redhat-developer/vscode-java

Support additional Gradle configurations

Open
#1,809 1 comment 0 reactions 1 assignee View on GitHub

@testforstephen is already working on this.

Since Feb 22, 2021.

Gradle
Dominant language
TypeScript
Stars
2.3k
Forks
546
Avg merge
20h 1m
Merged PRs (30d)
11

Description

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:

my-subproject/
  build.gradle
  src/
    integrationTest/
      java/
        com/ ...
    main/
      java/
        com/ ...
build.gradle
settings.gradle

In my-subproject/build.gradle the dependencies are defined akin to

dependencies {
    implementation 'com.fasterxml.jackson.dataformat:jackson-dataformat-yaml'
    integrationTestImplementation 'org.junit.jupiter:junit-jupiter'
}

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.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.