Skip to content

Commit 286145d

Browse files
committed
Refactor: Add documentation for the Scastie configuration
1 parent 86fe255 commit 286145d

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

_overviews/scala3-scaladoc/settings.md

+8
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,14 @@ Which means:
172172
- all snippets in files under directory `my/path/f` should fail during compilation
173173
- all other snippets should compile successfully
174174

175+
#### -scastie-configuration
176+
177+
Add the scastie-configuration flag to the Scala compiler options to enable the Scastie configuration. This will allow you to include additional Sbt configuration for your Scastie snippets. For example, when you import external libraries into your snippets, you need to add the related dependencies.
178+
179+
```
180+
"-scastie-configuration", """libraryDependencies += "org.apache.commons" % "commons-lang3" % "3.12.0""""
181+
```
182+
175183
##### -Ysnippet-compiler-debug
176184

177185
Setting this option makes snippet compiler print the snippet as it is compiled (after wrapping).

0 commit comments

Comments
 (0)