sbt-updates
771
Stars
58
Forks
18
Watchers
18
Open Issues
BSD-3-Clause
许可证
Scala
语言
2012-10-07
创建时间
2026-11-09
最近更新
项目能做什么
sbt-updates 是一款用于检查项目依赖版本的 sbt 插件。它能从 Maven 等仓库获取元数据,检测项目依赖及 sbt 插件是否有新版本可用,并兼容交叉编译版本。核心功能包括在终端展示可升级依赖、导出更新报告、支持依赖过滤及有更新时自动阻断构建。
来源:AI 基于仓库事实生成
· 内容以仓库实际 README 为准
使用说明 查看原始 README 原仓库文档
中文使用说明暂未生成。下面保留原仓库 README 摘录,命令与配置均以原文为准。
原始 README 摘录(英文原文,节选前 3000 字符)
sbt-updates
==================
Display your sbt project's dependency updates.
Update information is obtained from the maven metadata.
There is also a limited support for Ivy repositories hosted on BinTray.
If your project uses `crossScalaVersions` you will be presented only with updates available for all scala versions.
Requirements
==============
sbt 0.13.9 and later.
sbt 1.x is supported since version 0.3.1.
sbt 2.x is supported since version 0.7.0.
Installation
============
### Stable version
Create a `~/.sbt/1.0/plugins/sbt-updates.sbt` file (for sbt 1.x series), or `~/.sbt/0.13/plugins/sbt-updates.sbt` (for sbt 0.13.x series) with the following content:
```
addSbtPlugin("com.timushev.sbt" % "sbt-updates" % "x.x.x")
```
The latest version is [](https://maven-badges.herokuapp.com/maven-central/com.timushev.sbt/sbt-updates/)
### Snapshot version
Choose one of versions available on [Sonatype](https://oss.sonatype.org/content/repositories/snapshots/com/timushev/sbt/sbt-updates_2.12_1.0/). Then create a `~/.sbt/1.0/plugins/sbt-updates.sbt` file (for sbt 1.x series), or `~/.sbt/0.13/plugins/sbt-updates.sbt` (for sbt 0.13.x series) with the following content:
```
resolvers += Resolver.sonatypeRepo("snapshots")
addSbtPlugin("com.timushev.sbt" % "sbt-updates" % "x.x.x-y+gzzzzzzz-SNAPSHOT")
```
Note, that snapshots are not updated automatically.
Tasks
=====
* `dependencyUpdates`: show a list of project dependencies that can be updated,
* `dependencyUpdatesReport`: writes a list of project dependencies to a file.
Settings
========
* `dependencyUpdatesReportFile`: report file location, `target/dependency-updates.txt` by default.
* `dependencyUpdatesFilter`: filter matching dependencies that should be included to update reporting.
* `dependencyUpdatesFailBuild`: `dependencyUpdates` task will fail a build if updates found.
* `dependencyAllowPreRelease`: when enabled, pre-release dependencies will be reported as well.
#### Deprecated Settings
* `dependencyUpdatesExclusions`: filter matching dependencies that should be excluded from update reporting.
Exclusions
==========
You can exclude some modules from update checking:
```
dependencyUpdatesFilter -= moduleFilter(organization = "org.scala-lang")
```
sbt plugin updates
=============
If `sbt-updates` is installed in your global file you can get updates for sbt plugins by using the `reload plugins` command:
```
> reload plugins
...
> dependencyUpdates
[info] Found 2 dependency updates for project
[info] com.timushev.sbt:sbt-updates : 0.3.0 -> 0.3.4 -> 0.4.3
[info] org.scala-lang:scala-library:provided : 2.10.6 -> 2.12.4
> reload return
```
Only plugins defined in a project are checked, there is currently no way to check updates for global plugins.
You can also check updates for dependencies and sbt plugins with:
```
sbt ";dependencyUpdates; reload p
阅读完整原文
项目深度分析 AI 生成
Scala 自动化依赖安全与漏洞审计平台 (SaaS/On-Premise)
| 产品构想 | 以 sbt-updates 为底层解析逻辑,扩展集成 CVE 漏洞库与合规检查(如 License 审计),为 Scala 企业项目提供自动化 PR、安全补丁提醒和流水线质量门禁。 |
| 核心功能 | 依赖版本更新提示、CVE 风险级别关联、合规性风险提示、阻断不合规构建的 CI 插件、生成企业依赖清单(SBOM)。 |
| 目标用户 | 强合规、高安全要求的金融、科技类 Scala 开发团队及企业安全负责人。 |
| 难度/周期 | 中等 · 2-3 个月 · 成本:服务器/CI 资源费用、漏洞数据库(如 OSV/NVD)接入维护成本,初期极低。 |
| 收费模式 | 按私有仓库数量或开发者席位订阅收费(Freemium 模式)。 |
| 竞争风险 | 市场已被 Dependabot、Renovate 和 Snyk 等大厂免费或成熟工具挤压,Scala 垂类难以形成壁垒(AI推测)。 |
| 依据 | AI推测 |
Scala 代码迁移与 Breaking Changes 评估扩展工具
| 产品构想 | 针对 Scala 生态跨主版本更新(例如 Scala 2.13 到 3.x,或 Akka 到 Pekko)常伴随的 Binary/Source 破坏性变更,结合依赖更新检测,提供自动化代码兼容性评估报告。 |
| 核心功能 | 版本跃迁依赖树影响分析、跨版本 Binary Compatibility (MiMa) 预检、迁移指南聚合与自动化修复建议。 |
| 目标用户 | 正在进行大型遗留系统升级或 Scala 版本迁移的企业研发团队。 |
| 难度/周期 | 高 · 3-6 个月 · 成本:开发与静态分析规则库构建的时间成本。 |
| 收费模式 | 按迁移项目按次收费或企业技术咨询/专业版插件 License 授权。 |
| 竞争风险 | Scala 社区体量相对较小,定制升级服务需求频次低,难以形成标准化复购(AI推测)。 |
| 依据 | 尚需验证的假设 |
私有制品库/离线环境企业版 CLI 与报告生成器
| 产品构想 | 增强针对 Nexus/Artifactory 等私有 Maven/Ivy 仓库及完全离线环境的更新探测能力,生成符合安全合规审计要求的可视化报告(HTML/PDF/JSON)。 |
| 核心功能 | 支持复杂私有源认证的无缝对接、企业内网离线缓存更新策略、开箱即用的多格式安全审计与陈旧度报告、CI 门禁状态同步。 |
| 目标用户 | 内网封闭环境、金融、军工或政企中的 Scala 研发安全合规专员。 |
| 难度/周期 | 低至中等 · 1-2 个月 · 成本:开发时间成本,几乎无需额外基建成本。 |
| 收费模式 | 企业永久授权许可(含 1 年技术支持与维护费)。 |
| 竞争风险 | 私有化销售周期长,单一小插件的企业级采购决策门槛极高(AI推测)。 |
| 依据 | AI推测 |
AI 基于仓库公开数据分析生成,含推测成分,不构成收益承诺。
报告会保存到 个人中心
竞品与相似项目 GitHub Search 真实检索
| 项目 | 中文简介 | Stars | 语言 |
|---|---|---|---|
| sbt/sbt | 中文介绍暂未生成 sbt, the interactive build tool |
4,956 | Scala |
| stacks-archive/sbtc-developer-release | 中文介绍暂未生成 sBTC primitives, signer components, helper tools |
1,945 | Rust |
| sbt/sbt-native-packager | 中文介绍暂未生成 sbt Native Packager |
1,607 | Scala |
以上为通过 GitHub 官方 Search API 检索的相似项目,功能差异与优劣势需进一步人工确认,配置 AI 后可生成对比分析。
项目优势与风险
| 技术成熟度 | 创建于 2012-10-07,近 30 天仍在推送,发布过 27 个 Release |
| 社区活跃 | Star 771 / Fork 58 / Issue 18(数据支持,可自行核实) |
| 许可证 | BSD-3-Clause |
| 主要风险 | 上游项目方向可能变化;同赛道竞争者较多(见竞品表);热度与需求不完全等价 |
安装与使用
此项目未提供 Docker 镜像,安装步骤以原仓库 README 为准(涉及依赖安装与环境配置,对新手门槛较高)。