Skip to content

Commit 60c7abf

Browse files
authored
Merge pull request #1516 from eed3si9n/wip/text
Update why a bit
2 parents bbcc12a + f104aac commit 60c7abf

4 files changed

Lines changed: 68 additions & 42 deletions

File tree

.prettierignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# Legacy/migrated docs — preserve original formatting (link-def indentation,
22
# setext headings, etc.) instead of letting Prettier rewrite them on save.
3-
src/reference/reference/**/*.md
3+
src/**/*.md

po/summary/getting-started/why-sbt-exists.ja.po

Lines changed: 30 additions & 20 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: 2025-09-15T01:45:08-04:00\n"
4+
"POT-Creation-Date: 2026-08-10T18:08:01-04:00\n"
55
"PO-Revision-Date: 2025-09-15 03:29-0400\n"
66
"Last-Translator: Automatically generated\n"
77
"Language-Team: none\n"
@@ -71,63 +71,73 @@ msgstr ""
7171
#: src/reference/guide/why-sbt-exists.md:29
7272
msgid ""
7373
"_sbt_ is a simple build tool created for Scala and Java. It lets us declare "
74-
"subprojects and their various dependencies and custom tasks to ensure that "
75-
"we'll always get a fast, repeatable build."
74+
"subprojects, their various dependencies, and custom tasks in a configuration "
75+
"file to ensure that we'll always get a fast, repeatable build. Instead of "
76+
"downloading the compiler yourself, you can write:"
7677
msgstr ""
7778
"**sbt** は主に Scala と Java のためのシンプルなビルド・ツールだ。sbt を使うこ"
78-
"とで、サブプロジェクトおよびそれらの依存性、カスタム・タスクを宣言することが"
79+
"とで、サブプロジェクトおよびそれらの依存性、カスタム・タスクを設定ファイルに宣言することが"
7980
"でき、高速かつ再現性のあるビルドを得ることができる。"
81+
"コンパイラを自分でダウンロードする代わりに以下のように書くことができる:"
8082

81-
#: src/reference/guide/why-sbt-exists.md:32
83+
#: src/reference/guide/why-sbt-exists.md:33
84+
msgid "\"3.8.4\""
85+
msgstr ""
86+
87+
#: src/reference/guide/why-sbt-exists.md:36
88+
msgid "and sbt will download the compiler for you."
89+
msgstr "sbt は、これに従ってコンパイラをダウンロードしてくれる。"
90+
91+
#: src/reference/guide/why-sbt-exists.md:38
8292
msgid "To accomplish this goal, sbt does several things:"
8393
msgstr "この目標のため、sbt はいくつかのことを行う:"
8494

85-
#: src/reference/guide/why-sbt-exists.md:34
95+
#: src/reference/guide/why-sbt-exists.md:40
8696
msgid "The version of sbt itself is tracked in `project/build.properties`."
8797
msgstr "sbt 自身のバージョンは `project/build.properties` にて指定される。"
8898

89-
#: src/reference/guide/why-sbt-exists.md:35
99+
#: src/reference/guide/why-sbt-exists.md:41
90100
msgid ""
91101
"Defines a domain-specific language (DSL) called **build.sbt DSL** that can "
92102
"declare the Scala version and other subproject information in `build.sbt`."
93103
msgstr ""
94104
"**build.sbt DSL** という DSL (ドメイン特定言語) を定義し、`build.sbt` にて "
95105
"Scala バージョンその他のサブプロジェクトに関する情報を宣言できるようにする。"
96106

97-
#: src/reference/guide/why-sbt-exists.md:36
107+
#: src/reference/guide/why-sbt-exists.md:42
98108
msgid "Uses Coursier to fetch subprojects dependencies and their dependencies."
99109
msgstr ""
100110
"Cousier を用いてサブプロジェクトのライブラリ依存性や間接的依存性を取得する。"
101111

102-
#: src/reference/guide/why-sbt-exists.md:37
112+
#: src/reference/guide/why-sbt-exists.md:43
103113
msgid "Invokes Zinc to incrementally compile Scala and Java sources."
104114
msgstr "Zinc を呼び出して Scala や Java ソースの差分コンパイルを行う。"
105115

106-
#: src/reference/guide/why-sbt-exists.md:38
116+
#: src/reference/guide/why-sbt-exists.md:44
107117
msgid "Automatically runs tasks in parallel whenever possible."
108118
msgstr "可能な限り、タスクを並列実行する。"
109119

110-
#: src/reference/guide/why-sbt-exists.md:39
120+
#: src/reference/guide/why-sbt-exists.md:45
111121
msgid ""
112122
"Defines conventions on how packages are published to Maven repositories to "
113123
"interoperate with the wider JVM ecosystem."
114124
msgstr ""
115125
"JVM エコシステム全般と相互乗り入れが可能なように、パッケージが Maven リポジト"
116126
"リにどのように公開されるべきかの慣習を定義する。"
117127

118-
#: src/reference/guide/why-sbt-exists.md:41
128+
#: src/reference/guide/why-sbt-exists.md:47
119129
msgid ""
120130
"To a large extent, sbt standardizes the commands needed to build a given "
121131
"program or library."
122132
msgstr ""
123133
"sbt は、プログラムやライブラリのビルドに必要なコマンド実装の大部分を標準化し"
124134
"ていると言っても過言ではない。"
125135

126-
#: src/reference/guide/why-sbt-exists.md:43
136+
#: src/reference/guide/why-sbt-exists.md:49
127137
msgid "Why build.sbt DSL?"
128138
msgstr "build.sbt DSL の必要性"
129139

130-
#: src/reference/guide/why-sbt-exists.md:46
140+
#: src/reference/guide/why-sbt-exists.md:52
131141
msgid ""
132142
"sbt adopts Scala-based build.sbt DSL to declare the subproject and task "
133143
"graph. Nowadays, using a DSL as opposed to configuration formats like YAML "
@@ -141,7 +151,7 @@ msgstr ""
141151
"Buck、Apple の SwiftPM など多くのビルドツールが DSL を用いてサブプロジェクト"
142152
"を定義する。"
143153

144-
#: src/reference/guide/why-sbt-exists.md:48
154+
#: src/reference/guide/why-sbt-exists.md:54
145155
msgid ""
146156
"`build.sbt` can start almost like a YAML file, declaring just `scalaVersion` "
147157
"and `libraryDependencies`, but it can scale as your need for the build "
@@ -151,23 +161,23 @@ msgstr ""
151161
"かも YAML ファイルのように始めることができるが、ビルドシステムへの要求が高度"
152162
"になってもスケールすることができる。"
153163

154-
#: src/reference/guide/why-sbt-exists.md:51
164+
#: src/reference/guide/why-sbt-exists.md:57
155165
msgid ""
156166
"To avoid repeating the same information, like the version number for a "
157167
"library, `build.sbt` can declare variables using `val`."
158168
msgstr ""
159169
"ライブラリのためのバージョン番号など同じ情報の繰り返しを回避するため、"
160170
"`build.sbt` は `val` を使って変数を宣言できる。"
161171

162-
#: src/reference/guide/why-sbt-exists.md:52
172+
#: src/reference/guide/why-sbt-exists.md:58
163173
msgid ""
164174
"Uses Scala language constructs like `if` to define settings and tasks, when "
165175
"needed."
166176
msgstr ""
167177
"セッティングやタスクの定義内で必要に応じて `if` のような Scala 言語の言語構文"
168178
"を使うことができる。"
169179

170-
#: src/reference/guide/why-sbt-exists.md:53
180+
#: src/reference/guide/why-sbt-exists.md:59
171181
msgid ""
172182
"Statically typed settings and tasks, to catch typos and type errors before "
173183
"the build starts. The type also helps passing data from one task from "
@@ -177,7 +187,7 @@ msgstr ""
177187
"や型の間違いなどをキャッチできる。型は、タスク間でのデータの受け渡しにも役立"
178188
"つ。"
179189

180-
#: src/reference/guide/why-sbt-exists.md:54
190+
#: src/reference/guide/why-sbt-exists.md:60
181191
msgid ""
182192
"Provides **structured concurrency** via `Initialized[Task[A]]`. The DSL uses "
183193
"_direct style_ `.value` syntax to concisely define task graphs."
@@ -186,7 +196,7 @@ msgstr ""
186196
"る「直接スタイル」な `.value` 構文を用いて簡潔にタスクグラフを定義することが"
187197
"できる。"
188198

189-
#: src/reference/guide/why-sbt-exists.md:55
199+
#: src/reference/guide/why-sbt-exists.md:61
190200
msgid ""
191201
"Enpowers the community to extend sbt with plugins that provide custom tasks "
192202
"or language extensions like Scala.JS."

po/summary/getting-started/why-sbt-exists.zh-cn.po

Lines changed: 30 additions & 20 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: 2025-09-15T01:45:13-04:00\n"
4+
"POT-Creation-Date: 2026-08-10T18:08:06-04:00\n"
55
"PO-Revision-Date: 2025-09-16 02:11-0400\n"
66
"Last-Translator: Automatically generated\n"
77
"Language-Team: none\n"
@@ -68,59 +68,69 @@ msgstr ""
6868
#: src/reference/guide/why-sbt-exists.md:29
6969
msgid ""
7070
"_sbt_ is a simple build tool created for Scala and Java. It lets us declare "
71-
"subprojects and their various dependencies and custom tasks to ensure that "
72-
"we'll always get a fast, repeatable build."
71+
"subprojects, their various dependencies, and custom tasks in a configuration "
72+
"file to ensure that we'll always get a fast, repeatable build. Instead of "
73+
"downloading the compiler yourself, you can write:"
7374
msgstr ""
7475
"_sbt_ 是为 Scala 和 Java 创建的简单构建工具。它允许我们声明子项目及其各种依赖"
75-
"项和自定义任务,以确保我们始终能获得快速,可重复的构建。"
76+
"项和自定义任务,以确保我们始终能获得快速、可重复的构建。您无需自行下载编译"
77+
"器,只需写下:"
7678

77-
#: src/reference/guide/why-sbt-exists.md:32
79+
#: src/reference/guide/why-sbt-exists.md:33
80+
msgid "\"3.8.4\""
81+
msgstr ""
82+
83+
#: src/reference/guide/why-sbt-exists.md:36
84+
msgid "and sbt will download the compiler for you."
85+
msgstr "sbt 就会自动为您下载编译器。"
86+
87+
#: src/reference/guide/why-sbt-exists.md:38
7888
msgid "To accomplish this goal, sbt does several things:"
7989
msgstr "为了实现这一目标,sbt 做了几件事:"
8090

81-
#: src/reference/guide/why-sbt-exists.md:34
91+
#: src/reference/guide/why-sbt-exists.md:40
8292
msgid "The version of sbt itself is tracked in `project/build.properties`."
8393
msgstr "sbt 本身的版本记录在 `project/build.properties` 中。"
8494

85-
#: src/reference/guide/why-sbt-exists.md:35
95+
#: src/reference/guide/why-sbt-exists.md:41
8696
msgid ""
8797
"Defines a domain-specific language (DSL) called **build.sbt DSL** that can "
8898
"declare the Scala version and other subproject information in `build.sbt`."
8999
msgstr ""
90100
"定义了一种称为 **build.sbt DSL** 的领域特定语言,可以在 `build.sbt` 中声明 "
91101
"Scala 版本和其他子项目信息。"
92102

93-
#: src/reference/guide/why-sbt-exists.md:36
103+
#: src/reference/guide/why-sbt-exists.md:42
94104
msgid "Uses Coursier to fetch subprojects dependencies and their dependencies."
95105
msgstr "使用 Coursier 获取子项目依赖及其依赖项。"
96106

97-
#: src/reference/guide/why-sbt-exists.md:37
107+
#: src/reference/guide/why-sbt-exists.md:43
98108
msgid "Invokes Zinc to incrementally compile Scala and Java sources."
99109
msgstr "调用 Zinc 增量编译 Scala 和 Java 源代码。"
100110

101-
#: src/reference/guide/why-sbt-exists.md:38
111+
#: src/reference/guide/why-sbt-exists.md:44
102112
msgid "Automatically runs tasks in parallel whenever possible."
103113
msgstr "在可能的情况下自动并行运行任务。"
104114

105-
#: src/reference/guide/why-sbt-exists.md:39
115+
#: src/reference/guide/why-sbt-exists.md:45
106116
msgid ""
107117
"Defines conventions on how packages are published to Maven repositories to "
108118
"interoperate with the wider JVM ecosystem."
109119
msgstr ""
110120
"定义了如何将包发布到 Maven 仓库的约定,以便与更广泛的 JVM 生态系统进行互操"
111121
"作。"
112122

113-
#: src/reference/guide/why-sbt-exists.md:41
123+
#: src/reference/guide/why-sbt-exists.md:47
114124
msgid ""
115125
"To a large extent, sbt standardizes the commands needed to build a given "
116126
"program or library."
117127
msgstr "在很大程度上,sbt 标准化了构建给定程序或库所需的命令。"
118128

119-
#: src/reference/guide/why-sbt-exists.md:43
129+
#: src/reference/guide/why-sbt-exists.md:49
120130
msgid "Why build.sbt DSL?"
121131
msgstr "build.sbt DSL 的必要性"
122132

123-
#: src/reference/guide/why-sbt-exists.md:46
133+
#: src/reference/guide/why-sbt-exists.md:52
124134
msgid ""
125135
"sbt adopts Scala-based build.sbt DSL to declare the subproject and task "
126136
"graph. Nowadays, using a DSL as opposed to configuration formats like YAML "
@@ -132,7 +142,7 @@ msgstr ""
132142
"非 YAML 和 XML 等配置格式几乎不再是 sbt 的独特之处。许多构建工具,如 Gradle,"
133143
"Google 的 Bazel,Meta 的 Buck 以及 Apple 的 SwiftPM 都使用 DSL 来定义子项目。"
134144

135-
#: src/reference/guide/why-sbt-exists.md:48
145+
#: src/reference/guide/why-sbt-exists.md:54
136146
msgid ""
137147
"`build.sbt` can start almost like a YAML file, declaring just `scalaVersion` "
138148
"and `libraryDependencies`, but it can scale as your need for the build "
@@ -141,20 +151,20 @@ msgstr ""
141151
"`build.sbt` 最初几乎可以像 YAML 文件一样,仅声明 `scalaVersion` 和 "
142152
"`libraryDependencies`,但随着您对构建系统需求的增长,它可以进行扩展:"
143153

144-
#: src/reference/guide/why-sbt-exists.md:51
154+
#: src/reference/guide/why-sbt-exists.md:57
145155
msgid ""
146156
"To avoid repeating the same information, like the version number for a "
147157
"library, `build.sbt` can declare variables using `val`."
148158
msgstr ""
149159
"为了避免重复相同的信息,例如库的版本号,`build.sbt` 可以使用 `val` 声明变量。"
150160

151-
#: src/reference/guide/why-sbt-exists.md:52
161+
#: src/reference/guide/why-sbt-exists.md:58
152162
msgid ""
153163
"Uses Scala language constructs like `if` to define settings and tasks, when "
154164
"needed."
155165
msgstr "在需要时使用 Scala 语言结构(如 `if`)来定义设置和任务。"
156166

157-
#: src/reference/guide/why-sbt-exists.md:53
167+
#: src/reference/guide/why-sbt-exists.md:59
158168
msgid ""
159169
"Statically typed settings and tasks, to catch typos and type errors before "
160170
"the build starts. The type also helps passing data from one task from "
@@ -163,15 +173,15 @@ msgstr ""
163173
"静态类型的设置和任务,可在构建开始前捕获拼写错误和类型错误。类型还有助于将数"
164174
"据从一个任务传递到另一个任务。"
165175

166-
#: src/reference/guide/why-sbt-exists.md:54
176+
#: src/reference/guide/why-sbt-exists.md:60
167177
msgid ""
168178
"Provides **structured concurrency** via `Initialized[Task[A]]`. The DSL uses "
169179
"_direct style_ `.value` syntax to concisely define task graphs."
170180
msgstr ""
171181
"通过 `Initialized[Task[A]]` 提供**结构化并发**。DSL 使用所谓的**直接风格** "
172182
"`.value` 语法来简洁地定义任务图。"
173183

174-
#: src/reference/guide/why-sbt-exists.md:55
184+
#: src/reference/guide/why-sbt-exists.md:61
175185
msgid ""
176186
"Enpowers the community to extend sbt with plugins that provide custom tasks "
177187
"or language extensions like Scala.JS."

src/reference/guide/why-sbt-exists.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,13 @@ sbt
2727
---
2828

2929
*sbt* is a simple build tool created for Scala and Java.
30-
It lets us declare subprojects and their various dependencies and custom tasks to ensure that we'll always get a fast, repeatable build.
30+
It lets us declare subprojects, their various dependencies, and custom tasks in a configuration file to ensure that we'll always get a fast, repeatable build. Instead of downloading the compiler yourself, you can write:
31+
32+
```scala
33+
scalaVersion := "{{scala3_example_version}}"
34+
```
35+
36+
and sbt will download the compiler for you.
3137

3238
To accomplish this goal, sbt does several things:
3339

0 commit comments

Comments
 (0)