sbt-release
648
Stars
159
Forks
17
Watchers
92
Open Issues
Apache-2.0
许可证
Scala
语言
2011-10-15
创建时间
2026-11-11
最近更新
项目能做什么
sbt-release 是一个用于 Scala 项目的 sbt 发布插件。它解决了项目版本发布流程繁琐、易出错的问题,提供了开箱即用且高度可定制的发布工作流,支持语义化版本管理、Git 状态检查、运行测试、自动更新 `version.sbt` 版本号及制品发布。
来源:AI 基于仓库事实生成
· 内容以仓库实际 README 为准
使用说明 查看原始 README 原仓库文档
中文使用说明暂未生成。下面保留原仓库 README 摘录,命令与配置均以原文为准。
原始 README 摘录(英文原文,节选前 3000 字符)
# sbt-release
This sbt plugin provides a customizable release process that you can add to your project.
[](https://index.scala-lang.org/sbt/sbt-release/sbt-release)
[](https://index.scala-lang.org/sbt/sbt-release/sbt-release)
**Notice:** This README contains information for the latest release. Please refer to the documents for a specific version by looking up the respective [tag](https://github.com/sbt/sbt-release/tags).
## Requirements
* sbt 1.x
* The version of the project should follow the semantic versioning scheme on [semver.org](https://www.semver.org) with the following additions:
* The minor and bugfix (and beyond) part of the version are optional.
* There is no limit to the number of subversions you may have.
* The appendix after the bugfix part must be alphanumeric (`[0-9a-zA-Z]`) but may also contain dash characters `-`.
* These are all valid version numbers:
* 1.2.3
* 1.2.3-SNAPSHOT
* 1.2beta1
* 1.2-beta.1
* 1.2
* 1
* 1-BETA17
* 1.2.3.4.5
* 1.2.3.4.5-SNAPSHOT
* A [publish repository](https://www.scala-sbt.org/1.x/docs/Publishing.html) configured. (Required only for the default release process. See further below for release process customizations.)
* git [optional]
## Usage
Add the following lines to `./project/plugins.sbt`. See the section [Using Plugins](https://www.scala-sbt.org/1.x/docs/Using-Plugins.html) in the sbt website for more information.
```scala
addSbtPlugin("com.github.sbt" % "sbt-release" % "1.5.0")
```
## version.sbt
Since the build definition is actual Scala code, it's not as straight forward to change something in the middle of it as it is with an XML definition.
For this reason, *sbt-release* won't ever touch your build definition files, but instead writes the new release or development version to a file defined by the setting `releaseVersionFile`, which is set to **`file("version.sbt")`** by default and points to `$PROJECT_ROOT/version.sbt`.
By default the version is set on the build level (using `ThisBuild / version`). This behavior can be controlled by setting `releaseUseGlobalVersion` to `false`, after which a version like `version := "1.2.3"` will be written to `version.sbt`.
## Release Process
The default release process consists of the following tasks:
1. Check that the working directory is a git repository and the repository has no outstanding changes. Also prints the hash of the last commit to the console.
1. If there are any snapshot dependencies, ask the user whether to continue or not (default: no).
1. Ask the user for the `release version` and the `next development version`. Sensible defaults are provided.
1. Run `clean`.
1. Run `test`, if any test fails, the release process is aborted.
1
阅读完整原文
项目深度分析 AI 生成
企业级 CI/CD 安全发布网关与审计插件(SaaS/Enterprise Plugin)
| 产品构想 | 基于 sbt-release 核心逻辑,提供结合 SBOM 生成、签名(Cosign/GPG)及发布审批流的企业级发布扩展。 |
| 核心功能 | 版本自动签名核验、依赖物料清单(SBOM)生成、变更日志自动提取与发布审批 webhook、支持私有 Maven/Ivy 凭据集中管控。 |
| 目标用户 | 金融科技、医疗健康等强监管环境中使用 Scala 的架构与安全团队。 |
| 难度/周期 | 高 · 3-6个月 · 成本:开发与安全测试基础设施成本,企业客户对接成本。 |
| 收费模式 | 按席位或按流水线构建数量订阅的企业许可收费(Open Core 模式)。 |
| 竞争风险 | Scala 开发者基数相对主流语言较小,企业垂直市场较为局限且决策链路长。 |
| 依据 | 推测 |
Scala 现代化工程模板与 CI/CD 自动化咨询服务
| 产品构想 | 针对使用 sbt 构建大型复杂单体或微服务系统的团队,提供包含 sbt-release 配置优化、CI/CD 耗时缩减及自动化版本发布的落地咨询。 |
| 核心功能 | 定制化 release 流程开发、结合 GitHub Actions/GitLab CI 的无感知打标与推送、Monorepo 版本自动化解决方案。 |
| 目标用户 | 正在从旧版本 sbt 迁移或从手动发布转向自动化 CI/CD 的中大型企业研发团队。 |
| 难度/周期 | 中等 · 2-4周(按项目交付) · 成本:人力工时成本。 |
| 收费模式 | 按项目交付收取咨询与定制实施费。 |
| 竞争风险 | 难以规模化,收入受交付人日上限限制。 |
| 依据 | 推测 |
全自动变更日志与语义化发布 GitHub Action / 自动化工具
| 产品构想 | 封装基于 sbt-release 的一键式 CI 工作流组件,结合 Conventional Commits 自动判定发布级别并更新 GitHub Releases。 |
| 核心功能 | 规范提交检测、版本冲突自动回滚、GitHub/GitLab Release 页面同步生成、Slack/Teams 发布通知集成。 |
| 目标用户 | 开源 Scala 维护者及采用现代化敏捷流程的中小团队。 |
| 难度/周期 | 低 · 1-2个月 · 成本:低代码维护与轻量级测试环境开销。 |
| 收费模式 | 基础功能开源,高级集成(如跨项目级联发布、私有仓库支持)采用 GitHub Marketplace 付费订阅。 |
| 竞争风险 | 开源替代方案较多(如 sbt-ci-release),同质化竞争严重导致付费意愿弱。 |
| 依据 | 数据支持的判断 |
AI 基于仓库公开数据分析生成,含推测成分,不构成收益承诺。
报告会保存到 个人中心
竞品与相似项目 GitHub Search 真实检索
相似项目数据正在完善中,暂不展示(避免误导)
项目优势与风险
| 技术成熟度 | 创建于 2011-10-15,近 30 天仍在推送,发布过 6 个 Release |
| 社区活跃 | Star 648 / Fork 159 / Issue 92(数据支持,可自行核实) |
| 许可证 | Apache-2.0 |
| 主要风险 | 上游项目方向可能变化;同赛道竞争者较多(见竞品表);热度与需求不完全等价 |
安装与使用
此项目未提供 Docker 镜像,安装步骤以原仓库 README 为准(涉及依赖安装与环境配置,对新手门槛较高)。