Skip to content

Commit 68bee0a

Browse files
authored
Merge pull request #1495 from eed3si9n/wip/bom-support
doc: BOM support
2 parents f9d65b5 + a7c7826 commit 68bee0a

13 files changed

Lines changed: 524 additions & 405 deletions

po/summary/changes/migrating-from-sbt-1x.ja.po

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
msgid ""
22
msgstr ""
33
"Project-Id-Version: The Book of sbt\n"
4-
"POT-Creation-Date: 2026-06-28T04:06:04-04:00\n"
4+
"POT-Creation-Date: 2026-07-18T22:01:23-04:00\n"
55
"PO-Revision-Date: 2024-10-30T01:14:09-04:00\n"
66
"Last-Translator: Automatically generated\n"
77
"Language-Team: none\n"
@@ -373,7 +373,7 @@ msgid "\"1.5.8\""
373373
msgstr ""
374374

375375
#: src/reference/changes/migrating-from-sbt-1.x.md:152
376-
msgid "\"2.0.0\""
376+
msgid "\"2.0.3\""
377377
msgstr ""
378378

379379
#: src/reference/changes/migrating-from-sbt-1.x.md:158

po/summary/changes/migrating-from-sbt-1x.zh-cn.po

Lines changed: 38 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
msgid ""
22
msgstr ""
33
"Project-Id-Version: The Book of sbt\n"
4-
"POT-Creation-Date: 2026-06-28T04:06:11-04:00\n"
4+
"POT-Creation-Date: 2026-07-18T22:01:34-04:00\n"
55
"PO-Revision-Date: 2024-10-30T03:50:36-04:00\n"
66
"Last-Translator: Automatically generated\n"
77
"Language-Team: none\n"
@@ -141,8 +141,8 @@ msgid ""
141141
"```"
142142
msgstr ""
143143
"```admonish warning\n"
144-
"在 sbt 1.x 中,裸设置是仅应用于根子项目的项目设置。在 sbt 2.x 中,`build.sbt`"
145-
" 中的裸设置是注入到**所有子项目**的通用设置。\n"
144+
"在 sbt 1.x 中,裸设置是仅应用于根子项目的项目设置。在 sbt 2.x 中,"
145+
"`build.sbt` 中的裸设置是注入到**所有子项目**的通用设置。\n"
146146
"```"
147147

148148
#: src/reference/changes/migrating-from-sbt-1.x.md:66
@@ -218,8 +218,8 @@ msgid ""
218218
msgstr ""
219219
"在 sbt 2.x 中,所有任务默认都会被缓存。为参与缓存,任务的结果类型必须提供 "
220220
"`sjsonnew.JsonFormat` 的 given。任何结果类型缺少 `JsonFormat`(例如 "
221-
"`ParadoxProcessor`、`ClassLoader`、`Seq[PathMapping]` 等复杂对象或函数类型)"
222-
"任务将在 sbt 2 的构建加载时失败。"
221+
"`ParadoxProcessor`、`ClassLoader`、`Seq[PathMapping]` 等复杂对象或函数类型)"
222+
"的任务将在 sbt 2 的构建加载时失败。"
223223

224224
#: src/reference/changes/migrating-from-sbt-1.x.md:89
225225
msgid ""
@@ -244,9 +244,9 @@ msgid ""
244244
"always re-executes it."
245245
msgstr ""
246246
"在考虑任务缓存时,需注意有副作用的任务。当 sbt 2 从磁盘缓存恢复任务结果时,它"
247-
"会返回缓存值而不重新执行任务体。任何副作用(例如写文件、同步映射)都会被静默跳"
248-
"。如果任务每次运行都应产生副作用,请用 `Def.uncached(...)` 包装,使 sbt 2 始"
249-
"终重新执行它。"
247+
"会返回缓存值而不重新执行任务体。任何副作用(例如写文件、同步映射)都会被静默"
248+
"跳过。如果任务每次运行都应产生副作用,请用 `Def.uncached(...)` 包装,使 sbt "
249+
"2 始终重新执行它。"
250250

251251
#: src/reference/changes/migrating-from-sbt-1.x.md:99
252252
msgid ""
@@ -256,8 +256,8 @@ msgid ""
256256
"build-wide and per-task opt-out options."
257257
msgstr ""
258258
"[sbt2-compat](https://github.com/sbt/sbt2-compat) 插件在 sbt 1.x 上提供 "
259-
"`Def.uncached` 作为兼容性 shim(其中它是无操作)。有关详情,包括构建范围和每任"
260-
"务退出选项,请参阅[缓存任务](../reference/cached-task.md)参考文档。"
259+
"`Def.uncached` 作为兼容性 shim(其中它是无操作)。有关详情,包括构建范围和每"
260+
"任务退出选项,请参阅[缓存任务](../reference/cached-task.md)参考文档。"
261261

262262
#: src/reference/changes/migrating-from-sbt-1.x.md:101
263263
msgid "Migration away from IntegrationTest"
@@ -356,7 +356,7 @@ msgid "\"1.5.8\""
356356
msgstr ""
357357

358358
#: src/reference/changes/migrating-from-sbt-1.x.md:152
359-
msgid "\"2.0.0\""
359+
msgid "\"2.0.3\""
360360
msgstr ""
361361

362362
#: src/reference/changes/migrating-from-sbt-1.x.md:158
@@ -436,8 +436,8 @@ msgid ""
436436
"instead. Plugins should be aware of this change during migration."
437437
msgstr ""
438438
"在 sbt 1.x 中,`target.value` 解析为项目根 `target/` 目录。在 sbt 2.x 中,它"
439-
"改为解析为 `target/out/jvm/scala-<ver>/<project-name>`。插件在迁移过程中应注意"
440-
"此变更。"
439+
"改为解析为 `target/out/jvm/scala-<ver>/<project-name>`。插件在迁移过程中应注"
440+
"意此变更。"
441441

442442
#: src/reference/changes/migrating-from-sbt-1.x.md:191
443443
msgid "Migrating CI pipelines"
@@ -466,8 +466,8 @@ msgid ""
466466
"Previously, you could write `sbt clean compile test`. That now produces the "
467467
"error \"Expected whitespace character\"."
468468
msgstr ""
469-
"以前,您可以写 `sbt clean compile test`。现在这会产生错误 \"Expected whitespace "
470-
"character\"。"
469+
"以前,您可以写 `sbt clean compile test`。现在这会产生错误 \"Expected "
470+
"whitespace character\"。"
471471

472472
#: src/reference/changes/migrating-from-sbt-1.x.md:207
473473
msgid "sbt server with multiple steps"
@@ -491,9 +491,9 @@ msgid ""
491491
"job level so they are identical for all `sbt` invocations, or shut down "
492492
"`sbt` after each step or between steps."
493493
msgstr ""
494-
"如果您的流水线依赖于向每个会话传递不同的环境变量(如 `JAVA_OPTS`),则必须在作"
495-
"业级别提供所有变量使其对所有 `sbt` 调用相同,或在每个步骤之后或步骤之间关闭 "
496-
"`sbt`。"
494+
"如果您的流水线依赖于向每个会话传递不同的环境变量(如 `JAVA_OPTS`),则必须在"
495+
"作业级别提供所有变量使其对所有 `sbt` 调用相同,或在每个步骤之后或步骤之间关"
496+
"`sbt`。"
497497

498498
#: src/reference/changes/migrating-from-sbt-1.x.md:219
499499
msgid "\"clean ; compile ; test ; shutdown\""
@@ -518,8 +518,8 @@ msgid ""
518518
"beneath `target/out` so you may need to update the paths used for test "
519519
"publishing and artifact archival:"
520520
msgstr ""
521-
"测试结果等输出产物现在存储在 `target/out` 下的子目录中,因此您可能需要更新用于"
522-
"测试发布和产物归档的路径:"
521+
"测试结果等输出产物现在存储在 `target/out` 下的子目录中,因此您可能需要更新用"
522+
"于测试发布和产物归档的路径:"
523523

524524
#: src/reference/changes/migrating-from-sbt-1.x.md:232
525525
msgid "path"
@@ -541,9 +541,8 @@ msgid ""
541541
"reference/sbt.md#global-base-directory) for details."
542542
msgstr ""
543543
"在 sbt 2.x 中,全局基础目录遵循目录标准。Windows 上的默认值为 "
544-
"`%LOCALAPPDATA%/sbt/2`,否则为 `$XDG_CONFIG_HOME/sbt/2` 或 "
545-
"`$HOME/.config/sbt/2`。详情请参阅 [sbt 参考](../reference/sbt.md#global-base-"
546-
"directory)。"
544+
"`%LOCALAPPDATA%/sbt/2`,否则为 `$XDG_CONFIG_HOME/sbt/2` 或 `$HOME/.config/"
545+
"sbt/2`。详情请参阅 [sbt 参考](../reference/sbt.md#global-base-directory)。"
547546

548547
#: src/reference/changes/migrating-from-sbt-1.x.md:239
549548
msgid "The PluginCompat technique"
@@ -560,9 +559,9 @@ msgid ""
560559
msgstr ""
561560
"为使用相同的 `*.scala` 源但同时面向 sbt 1.x 和 2.x,我们可以创建一个 shim,例"
562561
"如在 `src/main/scala-2.12/` 和 `src/main/scala-3/` 中创建名为 `PluginCompat` "
563-
"的对象。迁移过程中常遇到的 API 已被抽象到 [sbt2-compat](https://github.com/sbt/"
564-
"sbt2-compat) 插件中,可用于避免手动创建 shim。要在 sbt 插件中使用它,可将其添"
565-
"加到 sbt 插件的 `build.sbt`:"
562+
"的对象。迁移过程中常遇到的 API 已被抽象到 [sbt2-compat](https://github.com/"
563+
"sbt/sbt2-compat) 插件中,可用于避免手动创建 shim。要在 sbt 插件中使用它,可将"
564+
"其添加到 sbt 插件的 `build.sbt`:"
566565

567566
#: src/reference/changes/migrating-from-sbt-1.x.md:244
568567
msgid "\"sbt2-compat\""
@@ -588,8 +587,8 @@ msgid ""
588587
"compat.html)."
589588
msgstr ""
590589
"您可以在以下博客文章中了解更多关于 `sbt2-compat`、`PluginCompat` 模式及其使用"
591-
"方法:[Migrating sbt plugins to sbt 2 with sbt2-compat plugin](https://www."
592-
"scala-lang.org/blog/2026/03/02/sbt2-compat.html)。"
590+
"方法:[Migrating sbt plugins to sbt 2 with sbt2-compat plugin](https://"
591+
"www.scala-lang.org/blog/2026/03/02/sbt2-compat.html)。"
593592

594593
#: src/reference/changes/migrating-from-sbt-1.x.md:257
595594
msgid "Migrating Classpath type"
@@ -604,10 +603,11 @@ msgid ""
604603
"With `sbt2-compat` added and imported as above, use `toNioPaths` and "
605604
"`toFiles`, for example:"
606605
msgstr ""
607-
"sbt 2.x 将 `Classpath` 类型更改为 `Seq[Attributed[xsbti.HashedVirtualFileRef]]`"
608-
" 的别名,而不再是 `Seq[Attributed[File]]`。任何需要 `File` 或 `Path` 进行 I/O"
609-
"(类路径 URL、映射、同步、验证)的插件必须转换这些引用。如上所示添加并导入 "
610-
"`sbt2-compat` 后,请使用 `toNioPaths` 和 `toFiles`,例如:"
606+
"sbt 2.x 将 `Classpath` 类型更改为 "
607+
"`Seq[Attributed[xsbti.HashedVirtualFileRef]]` 的别名,而不再是 "
608+
"`Seq[Attributed[File]]`。任何需要 `File` 或 `Path` 进行 I/O(类路径 URL、映"
609+
"射、同步、验证)的插件必须转换这些引用。如上所示添加并导入 `sbt2-compat` 后,"
610+
"请使用 `toNioPaths` 和 `toFiles`,例如:"
611611

612612
#: src/reference/changes/migrating-from-sbt-1.x.md:268
613613
msgid "// ..."
@@ -620,9 +620,9 @@ msgid ""
620620
"sources. See the [sbt2-compat README](https://github.com/sbt/sbt2-compat) "
621621
"for the up-to-date documentation on the API provided by the plugin."
622622
msgstr ""
623-
"`sbt2-compat` 还提供 `toNioPath`、`toFile`、`toFileRefsMapping`、`Def.uncached`"
624-
" 和其他便捷方法,可在共享源中使用。有关插件提供的 API 的最新文档,请参阅 "
625-
"[sbt2-compat README](https://github.com/sbt/sbt2-compat)。"
623+
"`sbt2-compat` 还提供 `toNioPath`、`toFile`、`toFileRefsMapping`、"
624+
"`Def.uncached` 和其他便捷方法,可在共享源中使用。有关插件提供的 API 的最新文"
625+
"档,请参阅 [sbt2-compat README](https://github.com/sbt/sbt2-compat)。"
626626

627627
#: src/reference/changes/migrating-from-sbt-1.x.md:274
628628
msgid "Defining your own PluginCompat shims"
@@ -635,9 +635,9 @@ msgid ""
635635
"source files under `src/main/scala-2.12/PluginCompat.scala` and `src/main/"
636636
"scala-3/PluginCompat.scala`. For example:"
637637
msgstr ""
638-
"对于 `sbt2-compat` 未覆盖的 sbt 1.x 和 2.x 之间损坏的 API,您可以通过在 "
639-
"`src/main/scala-2.12/PluginCompat.scala` 和 `src/main/scala-3/"
640-
"PluginCompat.scala` 下创建单独的源文件来定义自己的 `PluginCompat` shim。例如:"
638+
"对于 `sbt2-compat` 未覆盖的 sbt 1.x 和 2.x 之间损坏的 API,您可以通过在 `src/"
639+
"main/scala-2.12/PluginCompat.scala` 和 `src/main/scala-3/PluginCompat.scala` "
640+
"下创建单独的源文件来定义自己的 `PluginCompat` shim。例如:"
641641

642642
#: src/reference/changes/migrating-from-sbt-1.x.md:279
643643
msgid "// src/main/scala-2.12/PluginCompat.scala"

po/summary/installing-sbt-runner.ja.po

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
msgid ""
22
msgstr ""
33
"Project-Id-Version: The Book of sbt\n"
4-
"POT-Creation-Date: 2026-06-14T19:18:02-04:00\n"
4+
"POT-Creation-Date: 2026-07-18T22:01:23-04:00\n"
55
"PO-Revision-Date: 2024-10-31 02:44-0400\n"
66
"Last-Translator: Automatically generated\n"
77
"Language-Team: none\n"
@@ -75,26 +75,26 @@ msgstr "ユニバーサル・パッケージ"
7575

7676
#: src/reference/Setup.md:32
7777
msgid ""
78-
"[sbt-2.0.0.zip](https://github.com/sbt/sbt/releases/download/v2.0.0/"
79-
"sbt-2.0.0.zip)"
78+
"[sbt-2.0.3.zip](https://github.com/sbt/sbt/releases/download/v2.0.3/"
79+
"sbt-2.0.3.zip)"
8080
msgstr ""
8181

8282
#: src/reference/Setup.md:33
8383
msgid ""
84-
"[sbt-2.0.0.tgz](https://github.com/sbt/sbt/releases/download/v2.0.0/"
85-
"sbt-2.0.0.tgz)"
84+
"[sbt-2.0.3.tgz](https://github.com/sbt/sbt/releases/download/v2.0.3/"
85+
"sbt-2.0.3.tgz)"
8686
msgstr ""
8787

8888
#: src/reference/Setup.md:34
8989
msgid ""
90-
"[sbt-2.0.0.msi](https://github.com/sbt/sbt/releases/download/v2.0.0/"
91-
"sbt-2.0.0.msi)"
90+
"[sbt-2.0.3.msi](https://github.com/sbt/sbt/releases/download/v2.0.3/"
91+
"sbt-2.0.3.msi)"
9292
msgstr ""
9393

9494
#: src/reference/Setup.md:36
9595
msgid "Verify the sbt runner"
9696
msgstr "sbt runner の確認"
9797

9898
#: src/reference/Setup.md:40
99-
msgid "# 2.0.0\n"
99+
msgid "# 2.0.3\n"
100100
msgstr ""

po/summary/installing-sbt-runner.zh-cn.po

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
msgid ""
22
msgstr ""
33
"Project-Id-Version: The Book of sbt\n"
4-
"POT-Creation-Date: 2026-06-14T19:17:53-04:00\n"
4+
"POT-Creation-Date: 2026-07-18T22:01:34-04:00\n"
55
"PO-Revision-Date: 2024-10-31 03:13-0400\n"
66
"Last-Translator: Automatically generated\n"
77
"Language-Team: none\n"
@@ -70,26 +70,26 @@ msgstr "通用的包安装"
7070

7171
#: src/reference/Setup.md:32
7272
msgid ""
73-
"[sbt-2.0.0.zip](https://github.com/sbt/sbt/releases/download/v2.0.0/"
74-
"sbt-2.0.0.zip)"
73+
"[sbt-2.0.3.zip](https://github.com/sbt/sbt/releases/download/v2.0.3/"
74+
"sbt-2.0.3.zip)"
7575
msgstr ""
7676

7777
#: src/reference/Setup.md:33
7878
msgid ""
79-
"[sbt-2.0.0.tgz](https://github.com/sbt/sbt/releases/download/v2.0.0/"
80-
"sbt-2.0.0.tgz)"
79+
"[sbt-2.0.3.tgz](https://github.com/sbt/sbt/releases/download/v2.0.3/"
80+
"sbt-2.0.3.tgz)"
8181
msgstr ""
8282

8383
#: src/reference/Setup.md:34
8484
msgid ""
85-
"[sbt-2.0.0.msi](https://github.com/sbt/sbt/releases/download/v2.0.0/"
86-
"sbt-2.0.0.msi)"
85+
"[sbt-2.0.3.msi](https://github.com/sbt/sbt/releases/download/v2.0.3/"
86+
"sbt-2.0.3.msi)"
8787
msgstr ""
8888

8989
#: src/reference/Setup.md:36
9090
msgid "Verify the sbt runner"
9191
msgstr "验证 sbt runner"
9292

9393
#: src/reference/Setup.md:40
94-
msgid "# 2.0.0\n"
94+
msgid "# 2.0.3\n"
9595
msgstr ""

po/summary/reference/input-task.ja.po

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
msgid ""
22
msgstr ""
33
"Project-Id-Version: The Book of sbt\n"
4-
"POT-Creation-Date: 2026-06-14T19:18:03-04:00\n"
4+
"POT-Creation-Date: 2026-07-18T22:01:23-04:00\n"
55
"PO-Revision-Date: 2025-10-03 01:34-0400\n"
66
"Last-Translator: Automatically generated\n"
77
"Language-Team: none\n"
@@ -192,7 +192,7 @@ msgid ""
192192
"This Parser definition will produce a value of type `(String,String)`. The "
193193
"input syntax defined isn't very flexible; it is just a demonstration. It "
194194
"will produce one of the following values for a successful parse (assuming "
195-
"the current Scala version is 3.8.4, the current sbt version is 2.0.0, and "
195+
"the current Scala version is 3.8.4, the current sbt version is 2.0.3, and "
196196
"there are 3 commands left to run):"
197197
msgstr ""
198198
"この Parser 定義は `(String,String)` 型の値を生成する。定義した入力構文は柔軟"
@@ -205,7 +205,7 @@ msgid "(scala,3.8.4)"
205205
msgstr ""
206206

207207
#: src/reference/reference/input-task.md:106
208-
msgid "(sbt,2.0.0)"
208+
msgid "(sbt,2.0.3)"
209209
msgstr ""
210210

211211
#: src/reference/reference/input-task.md:107

po/summary/reference/input-task.zh-cn.po

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
msgid ""
22
msgstr ""
33
"Project-Id-Version: The Book of sbt\n"
4-
"POT-Creation-Date: 2026-06-14T19:17:53-04:00\n"
4+
"POT-Creation-Date: 2026-07-18T22:01:35-04:00\n"
55
"PO-Revision-Date: 2024-10-30T03:50:36-04:00\n"
66
"Last-Translator: Automatically generated\n"
77
"Language-Team: none\n"
@@ -179,7 +179,7 @@ msgid ""
179179
"This Parser definition will produce a value of type `(String,String)`. The "
180180
"input syntax defined isn't very flexible; it is just a demonstration. It "
181181
"will produce one of the following values for a successful parse (assuming "
182-
"the current Scala version is 3.8.4, the current sbt version is 2.0.0, and "
182+
"the current Scala version is 3.8.4, the current sbt version is 2.0.3, and "
183183
"there are 3 commands left to run):"
184184
msgstr ""
185185
"该 Parser 定义将产生类型为 `(String,String)` 的值。定义的输入语法不够灵活,仅"
@@ -191,7 +191,7 @@ msgid "(scala,3.8.4)"
191191
msgstr ""
192192

193193
#: src/reference/reference/input-task.md:106
194-
msgid "(sbt,2.0.0)"
194+
msgid "(sbt,2.0.3)"
195195
msgstr ""
196196

197197
#: src/reference/reference/input-task.md:107

po/summary/reference/plugin.ja.po

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
msgid ""
22
msgstr ""
33
"Project-Id-Version: The Book of sbt\n"
4-
"POT-Creation-Date: 2026-06-14T19:18:03-04:00\n"
4+
"POT-Creation-Date: 2026-07-18T22:01:24-04:00\n"
55
"PO-Revision-Date: 2025-10-03 01:34-0400\n"
66
"Last-Translator: Automatically generated\n"
77
"Language-Team: none\n"
@@ -375,7 +375,7 @@ msgid ""
375375
" name := \"sbt-obfuscate\",\n"
376376
" pluginCrossBuild / sbtVersion := {\n"
377377
" scalaBinaryVersion.value match\n"
378-
" case \"3\" => \"2.0.0-RC10\" // set minimum sbt version\n"
378+
" case \"3\" => \"2.0.1\" // set minimum sbt version\n"
379379
" }\n"
380380
" )\n"
381381
"```\n"

po/summary/reference/plugin.zh-cn.po

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
msgid ""
22
msgstr ""
33
"Project-Id-Version: The Book of sbt\n"
4-
"POT-Creation-Date: 2026-06-14T19:17:53-04:00\n"
4+
"POT-Creation-Date: 2026-07-18T22:01:35-04:00\n"
55
"PO-Revision-Date: 2024-10-30T03:50:36-04:00\n"
66
"Last-Translator: Automatically generated\n"
77
"Language-Team: none\n"
@@ -352,7 +352,7 @@ msgid ""
352352
" name := \"sbt-obfuscate\",\n"
353353
" pluginCrossBuild / sbtVersion := {\n"
354354
" scalaBinaryVersion.value match\n"
355-
" case \"3\" => \"2.0.0-RC10\" // set minimum sbt version\n"
355+
" case \"3\" => \"2.0.1\" // set minimum sbt version\n"
356356
" }\n"
357357
" )\n"
358358
"```\n"

0 commit comments

Comments
 (0)