Skip to content

Commit

Permalink
Update readme.md with badge and JDK compatibility (#341)
Browse files Browse the repository at this point in the history
  • Loading branch information
joriscode authored Jan 10, 2025
1 parent 5db6acc commit 80c5d10
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
# sbt-scalafmt
[![Join the chat at https://gitter.im/scalameta/scalafmt](https://badges.gitter.im/scalameta/scalafmt.svg)](https://gitter.im/scalameta/scalafmt?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
[![Join the discord chat](https://img.shields.io/discord/632642981228314653?label=discord)](https://discordapp.com/channels/632642981228314653/632665341864181780)
[![Maven Central](https://maven-badges.herokuapp.com/maven-central/org.scalameta/sbt-scalafmt/badge.svg?kill_cache=1)](https://search.maven.org/artifact/org.scalameta/sbt-scalafmt/)
[![Latest version](https://index.scala-lang.org/scalameta/sbt-scalafmt/latest.svg?kill_cache=1)](https://index.scala-lang.org/scalameta/sbt-scalafmt)

This is the repository for the Scalafmt sbt plugin, for the main Scalafmt
repository see [scalameta/scalafmt](https://github.com/scalameta/scalafmt/).

### Installation

Add following line into `project/plugins.sbt` (latest version is available next to the
**maven central** badge above)
**sbt-scalafmt** badge above)
```sbt
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % PLUGIN_VERSION)
```
Expand All @@ -19,6 +19,12 @@ If the above does not work, in enterprise environments, try:
libraryDependencies += "org.scalameta" % "sbt-scalafmt_2.12_1.0" % PLUGIN_VERSION
```

#### JDK compatibility
| JDK | Release |
| ---- | ---------------|
| 8 | Up to `v2.5.1` |
| 11+ | _latest_ |

### [User documentation](https://scalameta.org/scalafmt/)
Head over to [the user docs](https://scalameta.org/scalafmt/docs/installation.html#sbt) for instructions on how to install and use scalafmt.

Expand Down

0 comments on commit 80c5d10

Please # to comment.