feat(gradle): add Gradle ecosystem support#64
Merged
Conversation
Three parsers: Version Catalog (libs.versions.toml via toml_edit), Kotlin DSL (build.gradle.kts via regex), Groovy DSL (build.gradle via regex). Reuses MavenCentralRegistry from deps-maven. Extract LineOffsetTable, position_in_range, and complete_package_names_generic to deps-core for cross-ecosystem reuse.
…rser toml_edit 0.22 returns None for all span() calls on inline table values. Add text-search fallback (find_value_range_in_content) that locates quoted values by key within the document content, fixing inlay hints and diagnostics stacking on line 1 instead of their actual lines.
Use line-constrained text search for version range fallback: pass the name_range line as hint so each dependency finds its own version.ref occurrence instead of all mapping to the first one. Add line_start_offset and line_end_offset helpers to LineOffsetTable.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
deps-gradlecrate with three manifest parsers:gradle/libs.versions.toml) via toml_edit with position trackingbuild.gradle.kts) via regexbuild.gradle) via regexMavenCentralRegistryfrom deps-maven (no registry duplication)LineOffsetTable,position_in_range,complete_package_names_genericto deps-core for cross-ecosystem reusegradle, enabled by default)Test plan
cargo nextest run --workspace)cargo clippy --workspace --all-targets --all-features -- -D warnings)cargo +nightly fmt --check)libs.versions.tomlin Zedbuild.gradle.ktsin Zedbuild.gradlein Zed