Files
openidea/src/platform/buildFiles.ts
T
langxpandkradme c0b243f020 feat(maven): add POM artifact and managed-version navigation (#4699)
Go to Declaration on a dependency, plugin or <parent> in a POM opens the artifact's own POM (a workspace module with matching coordinates first, then the local repository), and unversioned dependencies and plugins get a gutter icon that opens the management entry supplying their version, through active profiles (including JDK-activated ones), parent POMs, imported BOMs and plugin management. Maven element values are underlined whole, and contributed definition/hover providers that decline a position let the next one answer. Review fix: a BOM import without a version no longer ends the management search.

Co-authored-by: kradme <17811095+kradme@users.noreply.github.com>
2026-11-20 13:45:47 +08:00

12 lines
485 B
TypeScript

/** Gradle scripts and static inputs whose edits can change the build model or libraries. */
export function isGradleBuildInput(path: string): boolean {
return /(?:^|[\\/])(?:[^\\/]+\.gradle(?:\.kts)?|gradle\.properties|gradle-wrapper\.properties|[^\\/]+\.versions\.toml)$/.test(
path,
);
}
/** A project POM or a POM installed in the local Maven repository. */
export function isMavenPom(path: string): boolean {
return /(^|[\\/])(?:pom\.xml|[^\\/]+\.pom)$/i.test(path);
}