|
4 | 4 | <meta charset="UTF-8">
|
5 | 5 | <meta name="generator" content="Docusaurus v3.1.0">
|
6 | 6 | <title data-rh="true">sbt by example | sbt</title><meta data-rh="true" name="viewport" content="width=device-width,initial-scale=1"><meta data-rh="true" name="twitter:card" content="summary_large_image"><meta data-rh="true" property="og:image" content="https://www.scala-sbt.org/img/docusaurus-social-card.jpg"><meta data-rh="true" name="twitter:image" content="https://www.scala-sbt.org/img/docusaurus-social-card.jpg"><meta data-rh="true" property="og:url" content="https://www.scala-sbt.org/docs/sbt-by-example"><meta data-rh="true" property="og:locale" content="en"><meta data-rh="true" name="docusaurus_locale" content="en"><meta data-rh="true" name="docsearch:language" content="en"><meta data-rh="true" name="docusaurus_version" content="current"><meta data-rh="true" name="docusaurus_tag" content="docs-default-current"><meta data-rh="true" name="docsearch:version" content="current"><meta data-rh="true" name="docsearch:docusaurus_tag" content="docs-default-current"><meta data-rh="true" property="og:title" content="sbt by example | sbt"><meta data-rh="true" name="description" content="[Basic-Def]: Basic-Def.html"><meta data-rh="true" property="og:description" content="[Basic-Def]: Basic-Def.html"><link data-rh="true" rel="icon" href="/assets/favicon.ico"><link data-rh="true" rel="canonical" href="https://www.scala-sbt.org/docs/sbt-by-example"><link data-rh="true" rel="alternate" href="https://www.scala-sbt.org/docs/sbt-by-example" hreflang="en"><link data-rh="true" rel="alternate" href="https://www.scala-sbt.org/docs/sbt-by-example" hreflang="x-default"><link data-rh="true" rel="preconnect" href="https://U55AU5GMCN-dsn.algolia.net" crossorigin="anonymous"><link rel="search" type="application/opensearchdescription+xml" title="sbt" href="/opensearch.xml"><link rel="stylesheet" href="/assets/css/styles.dd0658e4.css">
|
7 |
| -<script src="/assets/js/runtime~main.3070aaf7.js" defer="defer"></script> |
| 7 | +<script src="/assets/js/runtime~main.fa63ff0f.js" defer="defer"></script> |
8 | 8 | <script src="/assets/js/main.5d012fed.js" defer="defer"></script>
|
9 | 9 | </head>
|
10 | 10 | <body class="navigation-with-keyboard">
|
@@ -133,9 +133,9 @@ <h3 class="anchor anchorWithStickyNavbar_LWe7" id="set-the-version">Set the vers
|
133 | 133 | <p>Change <code>build.sbt</code> as follows:</p>
|
134 | 134 | <p>@@snip <a href="/docs/$root$/src/sbt-test/ref/example-weather/changes/build3.sbt">example-weather-build3</a> </p>
|
135 | 135 | <h3 class="anchor anchorWithStickyNavbar_LWe7" id="switch-scalaversion-temporarily">Switch scalaVersion temporarily<a href="#switch-scalaversion-temporarily" class="hash-link" aria-label="Direct link to Switch scalaVersion temporarily" title="Direct link to Switch scalaVersion temporarily"></a></h3>
|
136 |
| -<div class="codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#393A34;--prism-background-color:#f6f8fa"><div class="codeBlockContent_biex"><pre tabindex="0" class="prism-code language-text codeBlock_bY9V thin-scrollbar" style="color:#393A34;background-color:#f6f8fa"><code class="codeBlockLines_e6Vv"><span class="token-line" style="color:#393A34"><span class="token plain">sbt:Hello> ++3.3.1!</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">[info] Forcing Scala version to 3.3.1 on all projects.</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">[info] Reapplying settings...</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">[info] Set current project to Hello (in build file:/tmp/foo-build/)</span><br></span></code></pre><div class="buttonGroup__atx"><button type="button" aria-label="Copy code to clipboard" title="Copy" class="clean-btn"><span class="copyButtonIcons_eSgA" aria-hidden="true"><svg viewBox="0 0 24 24" class="copyButtonIcon_y97N"><path fill="currentColor" d="M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z"></path></svg><svg viewBox="0 0 24 24" class="copyButtonSuccessIcon_LjdS"><path fill="currentColor" d="M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"></path></svg></span></button></div></div></div> |
| 136 | +<div class="codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#393A34;--prism-background-color:#f6f8fa"><div class="codeBlockContent_biex"><pre tabindex="0" class="prism-code language-text codeBlock_bY9V thin-scrollbar" style="color:#393A34;background-color:#f6f8fa"><code class="codeBlockLines_e6Vv"><span class="token-line" style="color:#393A34"><span class="token plain">sbt:Hello> ++3.3.3!</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">[info] Forcing Scala version to 3.3.3 on all projects.</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">[info] Reapplying settings...</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">[info] Set current project to Hello (in build file:/tmp/foo-build/)</span><br></span></code></pre><div class="buttonGroup__atx"><button type="button" aria-label="Copy code to clipboard" title="Copy" class="clean-btn"><span class="copyButtonIcons_eSgA" aria-hidden="true"><svg viewBox="0 0 24 24" class="copyButtonIcon_y97N"><path fill="currentColor" d="M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z"></path></svg><svg viewBox="0 0 24 24" class="copyButtonSuccessIcon_LjdS"><path fill="currentColor" d="M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"></path></svg></span></button></div></div></div> |
137 | 137 | <p>Check the <code>scalaVersion</code> setting:</p>
|
138 |
| -<div class="codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#393A34;--prism-background-color:#f6f8fa"><div class="codeBlockContent_biex"><pre tabindex="0" class="prism-code language-text codeBlock_bY9V thin-scrollbar" style="color:#393A34;background-color:#f6f8fa"><code class="codeBlockLines_e6Vv"><span class="token-line" style="color:#393A34"><span class="token plain">sbt:Hello> scalaVersion</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">[info] helloCore / scalaVersion</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">[info] 3.3.1</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">[info] scalaVersion</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">[info] 3.3.1</span><br></span></code></pre><div class="buttonGroup__atx"><button type="button" aria-label="Copy code to clipboard" title="Copy" class="clean-btn"><span class="copyButtonIcons_eSgA" aria-hidden="true"><svg viewBox="0 0 24 24" class="copyButtonIcon_y97N"><path fill="currentColor" d="M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z"></path></svg><svg viewBox="0 0 24 24" class="copyButtonSuccessIcon_LjdS"><path fill="currentColor" d="M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"></path></svg></span></button></div></div></div> |
| 138 | +<div class="codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#393A34;--prism-background-color:#f6f8fa"><div class="codeBlockContent_biex"><pre tabindex="0" class="prism-code language-text codeBlock_bY9V thin-scrollbar" style="color:#393A34;background-color:#f6f8fa"><code class="codeBlockLines_e6Vv"><span class="token-line" style="color:#393A34"><span class="token plain">sbt:Hello> scalaVersion</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">[info] helloCore / scalaVersion</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">[info] 3.3.3</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">[info] scalaVersion</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">[info] 3.3.3</span><br></span></code></pre><div class="buttonGroup__atx"><button type="button" aria-label="Copy code to clipboard" title="Copy" class="clean-btn"><span class="copyButtonIcons_eSgA" aria-hidden="true"><svg viewBox="0 0 24 24" class="copyButtonIcon_y97N"><path fill="currentColor" d="M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z"></path></svg><svg viewBox="0 0 24 24" class="copyButtonSuccessIcon_LjdS"><path fill="currentColor" d="M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"></path></svg></span></button></div></div></div> |
139 | 139 | <p>This setting will go away after <code>reload</code>.</p>
|
140 | 140 | <h3 class="anchor anchorWithStickyNavbar_LWe7" id="inspect-the-dist-task">Inspect the dist task<a href="#inspect-the-dist-task" class="hash-link" aria-label="Direct link to Inspect the dist task" title="Direct link to Inspect the dist task"></a></h3>
|
141 | 141 | <p>To find out more about <code>dist</code>, try <code>help</code> and <code>inspect</code>.</p>
|
|
0 commit comments