You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<h2id="changes-with-compatibility-implications"><aclass="header" href="#changes-with-compatibility-implications">Changes with compatibility implications</a></h2>
<p>See also <ahref="./migrating-from-sbt-1.x.html">Migrating from sbt 1.x</a>.</p>
225
225
<ul>
226
-
<li><strong>Scala 3 in metabuild</strong>. sbt 2.x build.sbt DSL, used for build definitions and plugins, is based on Scala 3.x (currently<strong>3.7.2</strong>) (Both sbt 1.x and 2.x are capable of building Scala 2.x and 3.x) by <ahref="https://github.com/eed3si9n">@eed3si9n</a>, <ahref="https://github.com/adpi2">@adpi2</a>, and others.</li>
227
-
<li><strong>Common settings</strong>. Bare settings are added to all subprojects, as opposed to just the root subproject, and thus replacing the role that <code>ThisBuild</code>has played.</li>
228
-
<li><strong>Cached task</strong>. All tasks are cached by default. Details in <ahref="../concepts/caching.html">Caching</a>.</li>
229
-
<li><strong>Incremental test</strong>. <code>test</code>task is changed to be incremental test that can cache test results. Use <code>testFull</code>for full test by <ahref="https://github.com/eed3si9n">@eed3si9n</a> in <ahref="https://github.com/sbt/sbt/pull/7686">#7686</a></li>
230
-
<li><code>test</code>task type is changed from <code>Unit</code>to<code>TestResult</code> by <ahref="https://github.com/eed3si9n">@eed3si9n</a> in <ahref="https://github.com/sbt/sbt/pull/8181">#8181</a></li>
231
-
<li>Default settings and tasks keys typed to <code>URL</code>(i.e. <code>apiMappings</code>, <code>apiURL</code>, <code>homepage</code>, <code>organizationHomepage</code>, <code>releaseNotesURL</code>) were changed to <code>URI</code> in <ahref="https://github.com/sbt/sbt/pull/7927">#7927</a>.</li>
232
-
<li><code>licenses</code>key is changed from <code>Seq[(String, URL)]</code>to<code>Seq[License]</code> in <ahref="https://github.com/sbt/sbt/pull/7927">#7927</a>.</li>
233
-
<li>sbt 2.x plugins are published with <code>_sbt2_3</code> suffix by <ahref="https://github.com/eed3si9n">@eed3si9n</a> in <ahref="https://github.com/sbt/sbt/pull/7671">#7671</a></li>
234
-
<li>sbt 2.x adds <code>platform</code>setting so <code>ModuleID</code>'s <code>%%</code>operator can cross build on JVM as well as JS and Native, as opposed to <code>%%%</code>operator that was created in a plugin to workaround this issue, by <ahref="https://github.com/eed3si9n">@eed3si9n</a> in <ahref="https://github.com/sbt/sbt/pull/6746">#6746</a></li>
235
-
<li>Dropped <code>useCoursier</code>setting so Coursier cannot be opted out, by <ahref="https://github.com/eed3si9n">@eed3si9n</a> in <ahref="https://github.com/sbt/sbt/pull/7712">#7712</a></li>
<li><strong>差分テスト</strong>。<code>test</code>は、テスト結果をキャッシュする差分テストへと変更された。全テストを走らせたい場合は <code>testFull</code>を使う by <ahref="https://github.com/eed3si9n">@eed3si9n</a> in <ahref="https://github.com/sbt/sbt/pull/7686">#7686</a></li>
230
+
<li><code>test</code>タスクの形が <code>Unit</code>から<code>TestResult</code> へと変更された by <ahref="https://github.com/eed3si9n">@eed3si9n</a> in <ahref="https://github.com/sbt/sbt/pull/8181">#8181</a></li>
<li><code>license</code>キーの型が <code>Seq[(String, URL)]</code>から<code>Seq[License]</code>へと変更された in <ahref="https://github.com/sbt/sbt/pull/7927">#7927</a></li>
233
+
<li>sbt 2.x プラグインは <code>_sbt2_3</code>という suffix を用いて公開される by <ahref="https://github.com/eed3si9n">@eed3si9n</a> in <ahref="https://github.com/sbt/sbt/pull/7671">#7671</a></li>
234
+
<li>sbt 2.x は、<code>platform</code>セッティングを追加して、<code>ModuleID</code> の <code>%%%</code>演算子を使わなくても、<code>%%</code>演算子だけで JVM、JS、Native のクロスビルドができるようにした by <ahref="https://github.com/eed3si9n">@eed3si9n</a> in <ahref="https://github.com/sbt/sbt/pull/6746">#6746</a></li>
235
+
<li><code>useCoursier</code>セッティングを廃止して、Coursier をオプトアウトできないようにした by <ahref="https://github.com/eed3si9n">@eed3si9n</a> in <ahref="https://github.com/sbt/sbt/pull/7712">#7712</a></li>
236
236
<li><code>Key.Classpath</code> is changed to be an alias of the <code>Seq[Attributed[xsbti.HashedVirtualFileRef]]</code> type, instead of <code>Seq[Attributed[File]]</code>. Similarly, some task keys that used to return <code>File</code> have changed to return <code>HashedVirtualFileRef</code> instead. See <ahref="../concepts/caching.html#caching-files">Caching Files</a>.</li>
237
237
<li>In sbt 2.x <code>target</code> defaults to <code>target/out/jvm/scala-3.7.2/<subproject>/</code>, as opposed to <code><subproject>/target/</code>.</li>
<h2id="changes-with-compatibility-implications"><aclass="header" href="#changes-with-compatibility-implications">Changes with compatibility implications</a></h2>
<p>See also <ahref="changes/./migrating-from-sbt-1.x.html">Migrating from sbt 1.x</a>.</p>
1307
1307
<ul>
1308
-
<li><strong>Scala 3 in metabuild</strong>. sbt 2.x build.sbt DSL, used for build definitions and plugins, is based on Scala 3.x (currently<strong>3.7.2</strong>) (Both sbt 1.x and 2.x are capable of building Scala 2.x and 3.x) by <ahref="https://github.com/eed3si9n">@eed3si9n</a>, <ahref="https://github.com/adpi2">@adpi2</a>, and others.</li>
1309
-
<li><strong>Common settings</strong>. Bare settings are added to all subprojects, as opposed to just the root subproject, and thus replacing the role that <code>ThisBuild</code>has played.</li>
1310
-
<li><strong>Cached task</strong>. All tasks are cached by default. Details in <ahref="changes/../concepts/caching.html">Caching</a>.</li>
1311
-
<li><strong>Incremental test</strong>. <code>test</code>task is changed to be incremental test that can cache test results. Use <code>testFull</code>for full test by <ahref="https://github.com/eed3si9n">@eed3si9n</a> in <ahref="https://github.com/sbt/sbt/pull/7686">#7686</a></li>
1312
-
<li><code>test</code>task type is changed from <code>Unit</code>to<code>TestResult</code> by <ahref="https://github.com/eed3si9n">@eed3si9n</a> in <ahref="https://github.com/sbt/sbt/pull/8181">#8181</a></li>
1313
-
<li>Default settings and tasks keys typed to <code>URL</code>(i.e. <code>apiMappings</code>, <code>apiURL</code>, <code>homepage</code>, <code>organizationHomepage</code>, <code>releaseNotesURL</code>) were changed to <code>URI</code> in <ahref="https://github.com/sbt/sbt/pull/7927">#7927</a>.</li>
1314
-
<li><code>licenses</code>key is changed from <code>Seq[(String, URL)]</code>to<code>Seq[License]</code> in <ahref="https://github.com/sbt/sbt/pull/7927">#7927</a>.</li>
1315
-
<li>sbt 2.x plugins are published with <code>_sbt2_3</code> suffix by <ahref="https://github.com/eed3si9n">@eed3si9n</a> in <ahref="https://github.com/sbt/sbt/pull/7671">#7671</a></li>
1316
-
<li>sbt 2.x adds <code>platform</code>setting so <code>ModuleID</code>'s <code>%%</code>operator can cross build on JVM as well as JS and Native, as opposed to <code>%%%</code>operator that was created in a plugin to workaround this issue, by <ahref="https://github.com/eed3si9n">@eed3si9n</a> in <ahref="https://github.com/sbt/sbt/pull/6746">#6746</a></li>
1317
-
<li>Dropped <code>useCoursier</code>setting so Coursier cannot be opted out, by <ahref="https://github.com/eed3si9n">@eed3si9n</a> in <ahref="https://github.com/sbt/sbt/pull/7712">#7712</a></li>
<li><strong>差分テスト</strong>。<code>test</code>は、テスト結果をキャッシュする差分テストへと変更された。全テストを走らせたい場合は <code>testFull</code>を使う by <ahref="https://github.com/eed3si9n">@eed3si9n</a> in <ahref="https://github.com/sbt/sbt/pull/7686">#7686</a></li>
1312
+
<li><code>test</code>タスクの形が <code>Unit</code>から<code>TestResult</code> へと変更された by <ahref="https://github.com/eed3si9n">@eed3si9n</a> in <ahref="https://github.com/sbt/sbt/pull/8181">#8181</a></li>
<li><code>license</code>キーの型が <code>Seq[(String, URL)]</code>から<code>Seq[License]</code>へと変更された in <ahref="https://github.com/sbt/sbt/pull/7927">#7927</a></li>
1315
+
<li>sbt 2.x プラグインは <code>_sbt2_3</code>という suffix を用いて公開される by <ahref="https://github.com/eed3si9n">@eed3si9n</a> in <ahref="https://github.com/sbt/sbt/pull/7671">#7671</a></li>
1316
+
<li>sbt 2.x は、<code>platform</code>セッティングを追加して、<code>ModuleID</code> の <code>%%%</code>演算子を使わなくても、<code>%%</code>演算子だけで JVM、JS、Native のクロスビルドができるようにした by <ahref="https://github.com/eed3si9n">@eed3si9n</a> in <ahref="https://github.com/sbt/sbt/pull/6746">#6746</a></li>
1317
+
<li><code>useCoursier</code>セッティングを廃止して、Coursier をオプトアウトできないようにした by <ahref="https://github.com/eed3si9n">@eed3si9n</a> in <ahref="https://github.com/sbt/sbt/pull/7712">#7712</a></li>
1318
1318
<li><code>Key.Classpath</code> is changed to be an alias of the <code>Seq[Attributed[xsbti.HashedVirtualFileRef]]</code> type, instead of <code>Seq[Attributed[File]]</code>. Similarly, some task keys that used to return <code>File</code> have changed to return <code>HashedVirtualFileRef</code> instead. See <ahref="changes/../concepts/caching.html#caching-files">Caching Files</a>.</li>
1319
1319
<li>In sbt 2.x <code>target</code> defaults to <code>target/out/jvm/scala-3.7.2/<subproject>/</code>, as opposed to <code><subproject>/target/</code>.</li>
0 commit comments