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
Please read the earlier pages in the Getting Started Guide first, in
214
-
particular you need to understand [build.sbt][Basic-Def], [task graph][Task-Graph],
215
-
[library dependencies][Library-Dependencies], before reading this page.
216
-
-->
217
212
<h2id="what-is-a-plugin"><aclass="header" href="#what-is-a-plugin">What is a plugin?</a></h2>
218
213
<p>A plugin extends the build definition, most commonly by adding new settings and tasks.
219
214
For example, a plugin could add <code>githubWorkflowGenerate</code> task to generate GitHub Actions YAML.</p>
220
-
<!--
221
-
For example, a plugin
222
-
could add a `codeCoverage` task which would generate a test coverage report.
223
-
-->
224
215
<h2id="finding-the-plugin-versions-using-scaladex"><aclass="header" href="#finding-the-plugin-versions-using-scaladex">Finding the plugin versions using Scaladex</a></h2>
225
216
<p>You can use <ahref="https://index.scala-lang.org/search?platform=sbt2">Scaladex</a> to search for plugins, and find out the latest version of the plugin.</p>
226
217
<h2id="declaring-a-plugin"><aclass="header" href="#declaring-a-plugin">Declaring a plugin</a></h2>
Please read the earlier pages in the Getting Started Guide first, in
1378
-
particular you need to understand [build.sbt][Basic-Def], [task graph][Task-Graph],
1379
-
[library dependencies][Library-Dependencies], before reading this page.
1380
-
-->
1381
1376
<h2id="what-is-a-plugin"><aclass="header" href="#what-is-a-plugin">What is a plugin?</a></h2>
1382
1377
<p>A plugin extends the build definition, most commonly by adding new settings and tasks.
1383
1378
For example, a plugin could add <code>githubWorkflowGenerate</code> task to generate GitHub Actions YAML.</p>
1384
-
<!--
1385
-
For example, a plugin
1386
-
could add a `codeCoverage` task which would generate a test coverage report.
1387
-
-->
1388
1379
<h2id="finding-the-plugin-versions-using-scaladex"><aclass="header" href="#finding-the-plugin-versions-using-scaladex">Finding the plugin versions using Scaladex</a></h2>
1389
1380
<p>You can use <ahref="https://index.scala-lang.org/search?platform=sbt2">Scaladex</a> to search for plugins, and find out the latest version of the plugin.</p>
1390
1381
<h2id="declaring-a-plugin"><aclass="header" href="#declaring-a-plugin">Declaring a plugin</a></h2>
<p>In sbt 1.x bare settings were project settings that applied only to the root subproject. In sbt 2.x, the bare settings in <code>build.sbt</code>are common settings that are injected to <strong>all subprojects</strong>.</p>
<p>sbt query intentionally uses <code>...</code> (dot dot dot) instead of more intuitive <code>*</code> (asterisk) because<code>*</code>is often used in a shell as a wildcard to match existing files or directories. This would require quoting, and forgetting to quote <code>*/test</code>would match to something like <code>src/test</code>.</p>
<p>In sbt 1.x bare settings were project settings that applied only to the root subproject. In sbt 2.x, the bare settings in <code>build.sbt</code>are common settings that are injected to <strong>all subprojects</strong>.</p>
<p>sbt query intentionally uses <code>...</code> (dot dot dot) instead of more intuitive <code>*</code> (asterisk) because<code>*</code>is often used in a shell as a wildcard to match existing files or directories. This would require quoting, and forgetting to quote <code>*/test</code>would match to something like <code>src/test</code>.</p>
0 commit comments