Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,17 @@ ScalacOptions.defaultOptionsForVersion(

The following are simple examples of use in sbt and Mill. Note that they are not complete project definitions.

### Modifying options: Fatal warnings example

A common requirement is use a modified version of the default settings. In this example, we are going to enable fatal warnings.

```scala
ScalacOptions.tokensForVersion(
ScalaVersion.V3_1_0,
ScalacOptions.default ++ ScalacOptions.fatalWarningOptions
)
```

### sbt example

Add the following dependency to an `sbt` file within the project directory, for instance `project/plugins`:
Expand Down