<commit_before>---
menu: main
title: Upgrading from 0.18
weight: 2
---

1. Make sure your scala version is >= `2.11.12` or `2.12.7` ([no 2.13 yet](https://github.com/scalameta/scalameta/issues/1695))
2. Add the scalafix plugin to your `project/plugins.sbt`
`addSbtPlugin("ch.epfl.scala" % "sbt-scalafix" % "0.9.0")`
3. Add this line to your `build.sbt`
```
scalafixDependencies in ThisBuild += "org.http4s" %% "http4s-scalafix" % http4s020Version
```
4. Run
`sbt ";scalafixEnable; scalafix Http4s018To020"`<commit_msg>added doc<commit_after>---
menu: main
title: Upgrading from 0.18
weight: 2
---

1. Make sure your scala version is >= `2.11.12` or `2.12.7`
2. Add the scalafix plugin to your `project/plugins.sbt`
```scala
addSbtPlugin("ch.epfl.scala" % "sbt-scalafix" % "0.9.0")
```
3. Add this line to your `build.sbt`
```scala
scalafixDependencies in ThisBuild += "org.http4s" %% "http4s-scalafix" % http4s020Version
```
4. Run
```sh
$ sbt ";scalafixEnable; scalafix Http4s018To020"
```
{'fraction_non_alphanumeric': 0.17373737373737375, 'fraction_numerical': 0.07373737373737374, 'mean_word_length': 4.385869565217392, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6486966', 'n_tokens_mistral': 444, 'n_tokens_neox': 398, 'n_words': 104}