From 27e99dcc6339b967718e10554e75f5a5a86394a5 Mon Sep 17 00:00:00 2001 From: Albert Meltzer <7529386+kitbellew@users.noreply.github.com> Date: Sat, 8 Jan 2022 08:57:58 -0800 Subject: [PATCH] Installation: clarify sbt plugin version --- docs/installation.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/installation.md b/docs/installation.md index 138b05e173..ec64b822e1 100644 --- a/docs/installation.md +++ b/docs/installation.md @@ -113,14 +113,15 @@ editors in their respective parts of the ## sbt NB: keep in mind that versions of `scalafmt-core` and `sbt-scalafmt` are released -independently and don't have to align. The version of `scalafmt-core` is defined +independently, their versions do not align. The version of `scalafmt-core` is defined in the `.scalafmt.conf` configuration file and downloaded dynamically. ```scala // In project/plugins.sbt. Note, does not support sbt 0.13, only sbt 1.x. -addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.4.3") // "2.4.3" is just sbt plugin version +addSbtPlugin("org.scalameta" % "sbt-scalafmt" % SBT_PLUGIN_VERSION) ``` +Latest published version of the sbt plugin: [![Maven Central](https://maven-badges.herokuapp.com/maven-central/org.scalameta/sbt-scalafmt/badge.svg)](https://maven-badges.herokuapp.com/maven-central/org.scalameta/sbt-scalafmt) To configure the scalafmt version add the following line into `.scalafmt.conf`: