redhat-developer / redhat-developer/vscode-java

add source jars for local jar dependencies when using gradle

Open
#3,311 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

We have some local dependencies like:

dependencies {
    api fileTree(dir: 'lib', include: '*.jar')
}

but there is no way to add the source jars which are in another directory.

Also, you cannot use 'Attach Source...' for some reason when gradle is being used?

How can we get vscode to find the related source jars for the included libs (everything compiles and runs fine)?

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.

Research direction

Start by reproducing the Gradle configuration using fileTree for local JARs and source JARs in a separate directory, then investigate how vscode-java resolves sources for included libraries. Done means VS Code finds the related source JARs and source navigation works without relying on Attach Source.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, vscode
Domain
developer-experience, tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.