From 271d506e0694a3bfe7d325e40c15e3dcb93c84aa Mon Sep 17 00:00:00 2001 From: Lucas Date: Tue, 23 May 2023 15:20:03 +0200 Subject: [PATCH] Refactor: Add documentation for the Scastie configuration --- _overviews/scala3-scaladoc/settings.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/_overviews/scala3-scaladoc/settings.md b/_overviews/scala3-scaladoc/settings.md index 6b062967f2..69ca8b5cdb 100644 --- a/_overviews/scala3-scaladoc/settings.md +++ b/_overviews/scala3-scaladoc/settings.md @@ -172,6 +172,14 @@ Which means: - all snippets in files under directory `my/path/f` should fail during compilation - all other snippets should compile successfully +#### -scastie-configuration + +Define the additional sbt configuration for your Scastie snippets. For example, when you import external libraries into your snippets, you need to add the related dependencies. + +``` +"-scastie-configuration", """libraryDependencies += "org.apache.commons" % "commons-lang3" % "3.12.0"""" +``` + ##### -Ysnippet-compiler-debug Setting this option makes snippet compiler print the snippet as it is compiled (after wrapping).