Skip to content

Commit 9778931

Browse files
Move special imports down in configuration page
As these are somewhat less important (and may possibly be removed at some point), better put them more down in this page
1 parent 980bba6 commit 9778931

File tree

1 file changed

+15
-13
lines changed

1 file changed

+15
-13
lines changed

website/docs/guides/configuration.md

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -39,19 +39,6 @@ The reference documentation lists [all of the available options](../reference/cl
3939

4040
Configuration information can also be put in `.scala` and `.sc` files using special imports, and the `using` directive.
4141

42-
### Special imports
43-
44-
Dependencies can be added right from `.scala` and `.sc` files, using the same
45-
syntax as Ammonite and Metals worksheets:
46-
47-
```scala
48-
import $dep.`com.lihaoyi::upickle:1.4.0`
49-
import $ivy.`com.lihaoyi::pprint:0.6.6`
50-
import ujson._
51-
```
52-
53-
Both `import $ivy` and `import $dep` are accepted, and are equivalent.
54-
5542
### Using directives
5643

5744
Scala CLI can be configured inside `.scala` files.
@@ -66,3 +53,18 @@ This is achieved by specifying `using` directives inside comments at the top of
6653
```
6754

6855
The reference documentation lists [all available using directives](../reference/directives.md#using-directives).
56+
57+
### Special imports
58+
59+
Dependencies can be added right from `.scala` and `.sc` files, using the same
60+
syntax as Ammonite and Metals worksheets:
61+
62+
```scala
63+
import $dep.`com.lihaoyi::upickle:1.4.0`
64+
import $ivy.`com.lihaoyi::pprint:0.6.6`
65+
import ujson._
66+
```
67+
68+
Both `import $ivy` and `import $dep` are accepted, and are equivalent. Note that this syntax
69+
might be deprecated - and then removed - in the future. It's recommended to add dependencies
70+
with [`using` directives](#using-directives).

0 commit comments

Comments
 (0)