Skip to content

Commit 08a0509

Browse files
author
Docusaurus bot
committed
Deploy website
Deploy website version based on 08431bb
1 parent cac37ab commit 08a0509

File tree

2 files changed

+19
-19
lines changed

2 files changed

+19
-19
lines changed

Diff for: docs/configuration.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -7644,7 +7644,7 @@ <h2><a class="anchor" aria-hidden="true" id="other"></a><a href="#other" aria-hi
76447644
pseudo-formatting similar to but incompatible with <code>scalafmt.conf</code>.
76457645
Some of them show values which can't be explicitly specified.</p>
76467646
</blockquote>
7647-
<pre><code class="hljs"><span class="hljs-attr">version</span> = <span class="hljs-string">"3.8.5"</span>
7647+
<pre><code class="hljs"><span class="hljs-attr">version</span> = <span class="hljs-string">"3.8.6"</span>
76487648
<span class="hljs-attr">maxColumn</span> = <span class="hljs-number">80</span>
76497649
docstrings.<span class="hljs-attr">oneline</span> = keep
76507650
docstrings.<span class="hljs-attr">removeEmpty</span> = <span class="hljs-literal">false</span>

Diff for: docs/installation.html

+18-18
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ <h2><a class="anchor" aria-hidden="true" id="sbt"></a><a href="#sbt" aria-hidden
141141
<p>Latest published version of the sbt plugin:
142142
<a href="https://index.scala-lang.org/scalameta/sbt-scalafmt/sbt-scalafmt"><img src="https://index.scala-lang.org/scalameta/sbt-scalafmt/sbt-scalafmt/latest.svg" alt="sbt-scalafmt Scala version support"></a></p>
143143
<p>To configure the scalafmt version add the following line into <code>.scalafmt.conf</code>:</p>
144-
<pre><code class="hljs">version = <span class="hljs-number">3.8</span><span class="hljs-number">.5</span>
144+
<pre><code class="hljs">version = <span class="hljs-number">3.8</span><span class="hljs-number">.6</span>
145145
</code></pre>
146146
<h3><a class="anchor" aria-hidden="true" id="task-keys"></a><a href="#task-keys" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>Task keys</h3>
147147
<ul>
@@ -236,22 +236,22 @@ <h4><a class="anchor" aria-hidden="true" id="install"></a><a href="#install" ari
236236
<a href="https://get-coursier.io/docs/cli-overview.html#install">installation</a>
237237
of packages, the simplest approach is by running</p>
238238
<pre><code class="hljs css language-sh">cs install scalafmt
239-
scalafmt --version <span class="hljs-comment"># should be 3.8.5</span>
239+
scalafmt --version <span class="hljs-comment"># should be 3.8.6</span>
240240
</code></pre>
241241
<h4><a class="anchor" aria-hidden="true" id="standalone"></a><a href="#standalone" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>standalone</h4>
242242
<p>Alternatively, you can create a complete standalone executable (40+ MB in 2022) with:</p>
243-
<pre><code class="hljs css language-sh">coursier bootstrap org.scalameta:scalafmt-cli_2.13:3.8.5 \
243+
<pre><code class="hljs css language-sh">coursier bootstrap org.scalameta:scalafmt-cli_2.13:3.8.6 \
244244
-r sonatype:snapshots --main org.scalafmt.cli.Cli \
245245
--standalone \
246246
-o scalafmt
247-
./scalafmt --version <span class="hljs-comment"># should be 3.8.5</span>
247+
./scalafmt --version <span class="hljs-comment"># should be 3.8.6</span>
248248
</code></pre>
249249
<h4><a class="anchor" aria-hidden="true" id="slim"></a><a href="#slim" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>slim</h4>
250250
<p>Finally, you can choose to obtain a slim bootstrap script (100+ KB in 2022) instead with:</p>
251-
<pre><code class="hljs css language-sh">coursier bootstrap org.scalameta:scalafmt-cli_2.13:3.8.5 \
251+
<pre><code class="hljs css language-sh">coursier bootstrap org.scalameta:scalafmt-cli_2.13:3.8.6 \
252252
-r sonatype:snapshots --main org.scalafmt.cli.Cli \
253253
-o scalafmt
254-
./scalafmt --version <span class="hljs-comment"># should be 3.8.5</span>
254+
./scalafmt --version <span class="hljs-comment"># should be 3.8.6</span>
255255
</code></pre>
256256
<p>If a <code>version</code> is defined in <code>.scalafmt.conf</code>, the CLI binary will honor it
257257
by automatically resolving and downloading the corresponding artifacts if it
@@ -265,7 +265,7 @@ <h4><a class="anchor" aria-hidden="true" id="slim"></a><a href="#slim" aria-hidd
265265
</code></pre>
266266
<h3><a class="anchor" aria-hidden="true" id="pre-release"></a><a href="#pre-release" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>Pre-release</h3>
267267
<p>Our CI publishes a pre-release version of scalafmt to Sonatype Snapshots on
268-
every merge into master. To use a pre-release, replace 3.8.5 with the
268+
every merge into master. To use a pre-release, replace 3.8.6 with the
269269
version here:</p>
270270
<p><a href="https://oss.sonatype.org/content/repositories/snapshots/org/scalameta/scalafmt-cli_2.12/"><img src="https://img.shields.io/nexus/s/https/oss.sonatype.org/org.scalameta/scalafmt-cli_2.12.svg" alt="Sonatype Snapshots"></a></p>
271271
<p>If you use coursier to install a pre-release, be sure to include the flag
@@ -276,11 +276,11 @@ <h3><a class="anchor" aria-hidden="true" id="pre-release"></a><a href="#pre-rele
276276
<h3><a class="anchor" aria-hidden="true" id="native-image"></a><a href="#native-image" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>Native image</h3>
277277
<p>For macOS and Linux, it's possible to download pre-built GraalVm native binaries
278278
with instant startup and fast performance for short-lived Scalafmt runs.</p>
279-
<pre><code class="hljs css language-sh">VERSION=3.8.5
279+
<pre><code class="hljs css language-sh">VERSION=3.8.6
280280
INSTALL_LOCATION=/usr/<span class="hljs-built_in">local</span>/bin/scalafmt-native
281281
curl https://raw.githubusercontent.com/scalameta/scalafmt/master/bin/install-scalafmt-native.sh | \
282282
bash -s -- <span class="hljs-variable">$VERSION</span> <span class="hljs-variable">$INSTALL_LOCATION</span>
283-
scalafmt-native --<span class="hljs-built_in">help</span> <span class="hljs-comment"># should show version 3.8.5</span>
283+
scalafmt-native --<span class="hljs-built_in">help</span> <span class="hljs-comment"># should show version 3.8.6</span>
284284
</code></pre>
285285
<blockquote>
286286
<p>The native image binaries have the limitation of working only with one version
@@ -300,12 +300,12 @@ <h3><a class="anchor" aria-hidden="true" id="nailgun"></a><a href="#nailgun" ari
300300
<li>Create a standalone executable in <code>/usr/local/bin/scalafmt_ng</code> with (sudo if
301301
necessary)</li>
302302
</ul>
303-
<pre><code class="hljs css language-sh">coursier bootstrap --standalone org.scalameta:scalafmt-cli_2.13:3.8.5 \
303+
<pre><code class="hljs css language-sh">coursier bootstrap --standalone org.scalameta:scalafmt-cli_2.13:3.8.6 \
304304
-r sonatype:snapshots -f --main com.martiansoftware.nailgun.NGServer \
305305
-o /usr/<span class="hljs-built_in">local</span>/bin/scalafmt_ng
306306
scalafmt_ng &amp; // start nailgun <span class="hljs-keyword">in</span> background
307307
ng ng-alias scalafmt org.scalafmt.cli.Cli
308-
ng scalafmt --version <span class="hljs-comment"># should be 3.8.5</span>
308+
ng scalafmt --version <span class="hljs-comment"># should be 3.8.6</span>
309309
</code></pre>
310310
<p>Nailgun keeps scalafmt running on a local server to avoid the JVM startup
311311
penalty and also so scalafmt can benefit from JIT. This makes scalafmt up to 10x
@@ -317,7 +317,7 @@ <h3><a class="anchor" aria-hidden="true" id="homebrew"></a><a href="#homebrew" a
317317
<a href="#coursier">Coursier</a>, itself available via Homebrew.</p>
318318
<pre><code class="hljs css language-sh">brew install coursier/formulas/coursier
319319
coursier install scalafmt
320-
scalafmt --version // should be 3.8.5
320+
scalafmt --version // should be 3.8.6
321321
</code></pre>
322322
<p>If necessary, make sure to follow the Coursier instructions for updating
323323
<code>$PATH</code> so that the <code>scalafmt</code> binary becomes available in your terminal.</p>
@@ -327,13 +327,13 @@ <h3><a class="anchor" aria-hidden="true" id="arch-linux"></a><a href="#arch-linu
327327
package that installs scalafmt binary built with GraalVM. GraalVM native binary
328328
provides instant startup without Nailgun.</p>
329329
<pre><code class="hljs css language-sh">yaourt -S scalafmt-native-bin
330-
scalafmt --version // should be 3.8.5
330+
scalafmt --version // should be 3.8.6
331331
</code></pre>
332332
<h3><a class="anchor" aria-hidden="true" id="--help"></a><a href="#--help" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>--help</h3>
333333
<pre><code class="hljs">build commit: <span class="hljs-number">08431</span>bb1be11f0b801ad5a78e5fd4025bc62064d
334-
build time: Thu Jan <span class="hljs-number">23</span> <span class="hljs-number">16</span>:<span class="hljs-number">56</span>:<span class="hljs-number">57</span> UTC <span class="hljs-number">2025</span>
334+
build time: Thu Jan <span class="hljs-number">23</span> <span class="hljs-number">17</span>:<span class="hljs-number">04</span>:<span class="hljs-number">50</span> UTC <span class="hljs-number">2025</span>
335335
</code></pre>
336-
<pre><code class="hljs">scalafmt 3.8.5+22-08431bb1-SNAPSHOT
336+
<pre><code class="hljs">scalafmt 3.8.6
337337
Usage: scalafmt [options] [&lt;<span class="hljs-keyword">file</span>&gt;...]
338338

339339
-<span class="hljs-keyword">h</span>, --<span class="hljs-keyword">help</span> prints this usage text
@@ -429,7 +429,7 @@ <h2><a class="anchor" aria-hidden="true" id="mill"></a><a href="#mill" aria-hidd
429429
</ul>
430430
<h2><a class="anchor" aria-hidden="true" id="standalone-library"></a><a href="#standalone-library" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>Standalone library</h2>
431431
<p>Use the <code>scalafmt-dynamic</code> module to integrate with Scalafmt.</p>
432-
<pre><code class="hljs css language-scala">libraryDependencies += <span class="hljs-string">"org.scalameta"</span> %% <span class="hljs-string">"scalafmt-dynamic"</span> % <span class="hljs-string">"3.8.5"</span>
432+
<pre><code class="hljs css language-scala">libraryDependencies += <span class="hljs-string">"org.scalameta"</span> %% <span class="hljs-string">"scalafmt-dynamic"</span> % <span class="hljs-string">"3.8.6"</span>
433433
</code></pre>
434434
<p>First, create an instance of <code>Scalafmt</code> and get paths for the file to format
435435
along with it's configuration file.</p>
@@ -573,7 +573,7 @@ <h3><a class="anchor" aria-hidden="true" id="calling-from-java"></a><a href="#ca
573573
<pre><code class="hljs css language-xml"><span class="hljs-tag">&lt;<span class="hljs-name">dependency</span>&gt;</span>
574574
<span class="hljs-tag">&lt;<span class="hljs-name">groupId</span>&gt;</span>org.scalameta<span class="hljs-tag">&lt;/<span class="hljs-name">groupId</span>&gt;</span>
575575
<span class="hljs-tag">&lt;<span class="hljs-name">artifactId</span>&gt;</span>scalafmt-interfaces<span class="hljs-tag">&lt;/<span class="hljs-name">artifactId</span>&gt;</span>
576-
<span class="hljs-tag">&lt;<span class="hljs-name">version</span>&gt;</span>3.8.5<span class="hljs-tag">&lt;/<span class="hljs-name">version</span>&gt;</span>
576+
<span class="hljs-tag">&lt;<span class="hljs-name">version</span>&gt;</span>3.8.6<span class="hljs-tag">&lt;/<span class="hljs-name">version</span>&gt;</span>
577577
<span class="hljs-tag">&lt;/<span class="hljs-name">dependency</span>&gt;</span>
578578
</code></pre>
579579
<p>Next, obtain a classloader with the <code>scalafmt-dynamic_2.12</code> classpath.</p>
@@ -584,7 +584,7 @@ <h3><a class="anchor" aria-hidden="true" id="calling-from-java"></a><a href="#ca
584584
<span class="hljs-comment">// ClassLoader that shares only org.scalafmt.interfaces from this classloader.</span>
585585
ClassLoader sharedParent = <span class="hljs-keyword">new</span> ScalafmtClassLoader(<span class="hljs-keyword">this</span>.getClass.getClassLoader)
586586

587-
<span class="hljs-comment">// Jars to org.scalameta:scalafmt-dynamic_2.12:3.8.5 classpath. Obtain</span>
587+
<span class="hljs-comment">// Jars to org.scalameta:scalafmt-dynamic_2.12:3.8.6 classpath. Obtain</span>
588588
<span class="hljs-comment">// these from your build tool or programmatically with ivy/coursier.</span>
589589
URL[] jars = <span class="hljs-comment">// ...</span>
590590
ClassLoader scalafmtDynamic = <span class="hljs-keyword">new</span> URLClassLoader(jars, sharedParent)

0 commit comments

Comments
 (0)