Add support for simple Gradle version catalog aliases
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 62/100
- Issue 类型
- 功能
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 领域
- backend, documentation
调研方向
Start in backend/app/scanners/analyzers/java.py to see how literal group:artifact:version Gradle declarations are extracted, then check the fixtures in backend/tests/scanners/test_java_analyzer.py. The change should read gradle/libs.versions.toml as data, resolve simple [libraries] aliases for implementation, api and test configurations, and leave anything unsupported unresolved. Done means the new fixture tests pass alongside the existing literal-parsing tests, and docs/languages.md describes the added support and its limits.
由索引模型根据 Issue 内容生成。
描述
Summary
Gradle analysis currently extracts literal group:artifact:version declarations. Simple Gradle version catalog aliases in gradle/libs.versions.toml are not resolved, so dependencies referenced as implementation(libs.alias) or equivalent are missing from the inventory.
Affected files
backend/app/scanners/analyzers/java.pybackend/tests/scanners/test_java_analyzer.pydocs/languages.md
Scope
Read the conventional gradle/libs.versions.toml catalog and resolve simple library aliases used by supported dependency configurations. Parse the TOML as data only; never execute Gradle scripts or fetch artifacts. Leave unsupported expressions unresolved.
Acceptance criteria
- The scanner reads
gradle/libs.versions.tomlwhen present. - Simple
[libraries]aliases resolve from inline versions andversion.refentries. - Basic
implementation(libs.alias),api(libs.alias), and test-configuration references are recognized. - Existing literal Gradle dependency parsing remains unchanged.
- Complex expressions, unsupported catalog features, and unresolved version references remain unresolved rather than guessed.
- Fixture-based tests cover inline versions,
version.ref, supported configurations, unresolved expressions, and literal parsing. docs/languages.mdaccurately documents the added catalog support and remaining limitations.
Testing expectations
Run the focused Java analyzer tests and relevant backend scanner tests. Confirm documentation claims match tested behavior.
- 主要语言
- Python
- 星标
- 2
- 派生
- 1
- 平均合并
- 1 小时 22 分钟
- 30 天内合并 PR
- 2
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
ayushdoesdev/verspect 的其他 Issue
-
documentation good first issue
难度 2/5 1-3 小时 新手友好度 82/100
ayushdoesdev/verspect#5 ·
-
enhancement good first issue
难度 3/5 1-2 天 新手友好度 62/100
ayushdoesdev/verspect#3 ·
-
enhancement good first issue
难度 3/5 1-2 天 新手友好度 62/100
ayushdoesdev/verspect#2 ·
查看 ayushdoesdev/verspect 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
enhancement good first issue
难度 2/5 1-3 小时 新手友好度 78/100
elviskahoro/sdk-python-attio#144 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 84/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
RenyiELBO raises TypeError when model has no sample sites可能已有人在做 @alibb007 今天认领。 未关闭
难度 1/5 1 小时以内 新手友好度 85/100
维护者通常 1 天内回复