redhat-developer / redhat-developer/vscode-java

Support additional Gradle configurations

Offen
#1,809 1 Kommentar 0 Reaktionen 1 zugewiesene Person Auf GitHub ansehen

@testforstephen arbeitet bereits daran.

Seit 22.2.2021.

Gradle
Vorherrschende Sprache
TypeScript
Sterne
2.3k
Forks
546
Ø Merge
20 Std. 1 Min.
Gemergte PRs (30 T.)
11

Beschreibung

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.

Beitragsleitfaden

Beitragsleitfaden öffnen

Erste Schritte

  1. Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
  3. Forke das Repository und arbeite in einem Branch.
  4. Öffne einen Pull Request, der die Issue-Nummer nennt.

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.