Skip to content

Conversation

@yezhu6
Copy link
Contributor

@yezhu6 yezhu6 commented Dec 16, 2025

  1. add the tool id into the java upgrade prompts to specify the calling tool
  2. Change the getDependencies to getDirectDependencies to exclude the transitive dependencies

}

// Check for parent pom in multi-module projects
const parentPomPath = path.join(path.dirname(pomPath), '..', 'pom.xml');
Copy link
Contributor

@wangmingliang-ms wangmingliang-ms Dec 17, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this may not be the fact. I think you can find all the pom.xml in this project first and then parse them one by one to find all the dependencies.

/**
* Find the build file (pom.xml or build.gradle) for a project
*/
function findBuildFile(projectUri: string | undefined): { path: string; type: 'maven' | 'gradle' } | null {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you can use "glob" to find the pom.xml files, remember to exclude certain folders to improve performance. you can find the usage of glob in vscode-java-upgrade.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants