Skip to content

Conversation

@shs96c
Copy link
Collaborator

@shs96c shs96c commented Nov 28, 2025

No description provided.

Currently, the Java Gazelle plugin relies solely on package-level indexing for dependency resolution. This is inefficient for split packages in large corporate repositories, often requiring manual #gazelle:resolve directives.

This change introduces the architecture for class-level resolution:

Updates the resolution input pipeline to carry class-level import data alongside package data.
Extends the Maven resolver to support querying by class name (with package fallback).
Updates the resolution logic to prioritize precise class matches over broad package matches.

This structure prepares the plugin for future improvements where class indices can be populated from jar files or external services, enabling automatic and precise resolution for split packages.
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.

1 participant