From 50f732f44bd06b2e25e5274c6779849957a630dc Mon Sep 17 00:00:00 2001 From: Docusaurus bot Date: Wed, 27 Nov 2024 17:18:13 +0000 Subject: [PATCH] Deploy website Deploy website version based on d38fa85300898f75a1e2e3e6475ba2f721c81a1c --- docs/configuration.html | 2 +- docs/installation.html | 36 ++++++++++++++++++------------------ 2 files changed, 19 insertions(+), 19 deletions(-) diff --git a/docs/configuration.html b/docs/configuration.html index 3de30b64c2..8c4cac6bca 100644 --- a/docs/configuration.html +++ b/docs/configuration.html @@ -7345,7 +7345,7 @@

scalafmt.conf. Some of them show values which can't be explicitly specified.

-
version = "3.8.4-RC2"
+
version = "3.8.4-RC3"
 maxColumn = 80
 docstrings.oneline = keep
 docstrings.removeEmpty = false
diff --git a/docs/installation.html b/docs/installation.html
index e5c361d86a..eb1cebbd6e 100644
--- a/docs/installation.html
+++ b/docs/installation.html
@@ -141,7 +141,7 @@ 

Latest published version of the sbt plugin: sbt-scalafmt Scala version support

To configure the scalafmt version add the following line into .scalafmt.conf:

-
version = 3.8.4-RC2
+
version = 3.8.4-RC3
 

Task keys

    @@ -236,22 +236,22 @@

    installation of packages, the simplest approach is by running

    cs install scalafmt
    -scalafmt --version # should be 3.8.4-RC2
    +scalafmt --version # should be 3.8.4-RC3
     

    standalone

    Alternatively, you can create a complete standalone executable (40+ MB in 2022) with:

    -
    coursier bootstrap org.scalameta:scalafmt-cli_2.13:3.8.4-RC2 \
    +
    coursier bootstrap org.scalameta:scalafmt-cli_2.13:3.8.4-RC3 \
       -r sonatype:snapshots --main org.scalafmt.cli.Cli \
       --standalone \
       -o scalafmt
    -./scalafmt --version # should be 3.8.4-RC2
    +./scalafmt --version # should be 3.8.4-RC3
     

    slim

    Finally, you can choose to obtain a slim bootstrap script (100+ KB in 2022) instead with:

    -
    coursier bootstrap org.scalameta:scalafmt-cli_2.13:3.8.4-RC2 \
    +
    coursier bootstrap org.scalameta:scalafmt-cli_2.13:3.8.4-RC3 \
       -r sonatype:snapshots --main org.scalafmt.cli.Cli \
       -o scalafmt
    -./scalafmt --version # should be 3.8.4-RC2
    +./scalafmt --version # should be 3.8.4-RC3
     

    If a version is defined in .scalafmt.conf, the CLI binary will honor it by automatically resolving and downloading the corresponding artifacts if it @@ -265,7 +265,7 @@

    Pre-release

    Our CI publishes a pre-release version of scalafmt to Sonatype Snapshots on -every merge into master. To use a pre-release, replace 3.8.4-RC2 with the +every merge into master. To use a pre-release, replace 3.8.4-RC3 with the version here:

    Sonatype Snapshots

    If you use coursier to install a pre-release, be sure to include the flag @@ -276,11 +276,11 @@

    Native image

    For macOS and Linux, it's possible to download pre-built GraalVm native binaries with instant startup and fast performance for short-lived Scalafmt runs.

    -
    VERSION=3.8.4-RC2
    +
    VERSION=3.8.4-RC3
     INSTALL_LOCATION=/usr/local/bin/scalafmt-native
     curl https://raw.githubusercontent.com/scalameta/scalafmt/master/bin/install-scalafmt-native.sh | \
       bash -s -- $VERSION $INSTALL_LOCATION
    -scalafmt-native --help # should show version 3.8.4-RC2
    +scalafmt-native --help # should show version 3.8.4-RC3
     

    The native image binaries have the limitation of working only with one version @@ -300,12 +300,12 @@

    Create a standalone executable in /usr/local/bin/scalafmt_ng with (sudo if necessary)

-
coursier bootstrap --standalone org.scalameta:scalafmt-cli_2.13:3.8.4-RC2 \
+
coursier bootstrap --standalone org.scalameta:scalafmt-cli_2.13:3.8.4-RC3 \
   -r sonatype:snapshots -f --main com.martiansoftware.nailgun.NGServer \
   -o /usr/local/bin/scalafmt_ng
 scalafmt_ng & // start nailgun in background
 ng ng-alias scalafmt org.scalafmt.cli.Cli
-ng scalafmt --version # should be 3.8.4-RC2
+ng scalafmt --version # should be 3.8.4-RC3
 

Nailgun keeps scalafmt running on a local server to avoid the JVM startup penalty and also so scalafmt can benefit from JIT. This makes scalafmt up to 10x @@ -317,7 +317,7 @@

Coursier, itself available via Homebrew.

brew install coursier/formulas/coursier
 coursier install scalafmt
-scalafmt --version // should be 3.8.4-RC2
+scalafmt --version // should be 3.8.4-RC3
 

If necessary, make sure to follow the Coursier instructions for updating $PATH so that the scalafmt binary becomes available in your terminal.

@@ -327,13 +327,13 @@

yaourt -S scalafmt-native-bin -scalafmt --version // should be 3.8.4-RC2 +scalafmt --version // should be 3.8.4-RC3

--help

build commit: d38fa85300898f75a1e2e3e6475ba2f721c81a1c
-build time: Wed Nov 27 16:12:16 UTC 2024
+build time: Wed Nov 27 17:17:30 UTC 2024
 
-
scalafmt 3.8.4-RC2+46-d38fa853-SNAPSHOT
+
scalafmt 3.8.4-RC3
 Usage: scalafmt [options] [<file>...]
 
   -h, --help               prints this usage text
@@ -429,7 +429,7 @@ 

Standalone library

Use the scalafmt-dynamic module to integrate with Scalafmt.

-
libraryDependencies += "org.scalameta" %% "scalafmt-dynamic" % "3.8.4-RC2"
+
libraryDependencies += "org.scalameta" %% "scalafmt-dynamic" % "3.8.4-RC3"
 

First, create an instance of Scalafmt and get paths for the file to format along with it's configuration file.

@@ -573,7 +573,7 @@

<dependency> <groupId>org.scalameta</groupId> <artifactId>scalafmt-interfaces</artifactId> - <version>3.8.4-RC2</version> + <version>3.8.4-RC3</version> </dependency>

Next, obtain a classloader with the scalafmt-dynamic_2.12 classpath.

@@ -584,7 +584,7 @@

// ClassLoader that shares only org.scalafmt.interfaces from this classloader. ClassLoader sharedParent = new ScalafmtClassLoader(this.getClass.getClassLoader) -// Jars to org.scalameta:scalafmt-dynamic_2.12:3.8.4-RC2 classpath. Obtain +// Jars to org.scalameta:scalafmt-dynamic_2.12:3.8.4-RC3 classpath. Obtain // these from your build tool or programmatically with ivy/coursier. URL[] jars = // ... ClassLoader scalafmtDynamic = new URLClassLoader(jars, sharedParent)