Skip to content

Commit f82e09e

Browse files
committed
Fix config sysprop doc to work with sbt 1.6+
1 parent 92669d9 commit f82e09e

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

doc/CONFIG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,16 @@ If this is important to you or your organisation, feel free to reach out and spo
2525

2626
# Compile-Time Settings: Usage
2727

28+
First add this to your sbt:
29+
30+
```scala
31+
scalacOptions ++= // Required since sbt 1.6.0
32+
sys.props.iterator
33+
.filter(_._1.contains("japgolly"))
34+
.map(x => s"-D${x._1}=${x._2}")
35+
.toSeq
36+
```
37+
2838
Currently, you have to specify compile-time settings to `sbt` directly when you start it.
2939

3040
Examples:

0 commit comments

Comments
 (0)