Skip to content

Commit 151ee81

Browse files
authored
Merge pull request #3607 from VirtusLab/stable
Back port of documentation changes to main
2 parents 2e49bc0 + 64756e4 commit 151ee81

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

website/docs/guides/introduction/dependencies.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,17 @@ It is possible to declare dependencies limited to the test scope with the `using
140140
More details can be found in
141141
the [`using` directives guide](using-directives.md#directives-with-a-test-scope-equivalent).
142142

143+
### Compile-Only dependencies
144+
145+
It is possible to declare dependencies that are only used during the compilation phase with the `using compileOnly.dep` directive.
146+
147+
```scala compile
148+
//> using compileOnly.dep com.github.plokhotnyuk.jsoniter-scala::jsoniter-scala-macros:2.23.2
149+
```
150+
151+
More details can be found in
152+
the [`compile` command guide](../../commands/compile.md#compile-only-dependencies).
153+
143154
## Specifying dependencies from the command line
144155

145156
You can add dependencies on the command line, with the `--dependency` option:

0 commit comments

Comments
 (0)