File tree Expand file tree Collapse file tree 1 file changed +15
-13
lines changed Expand file tree Collapse file tree 1 file changed +15
-13
lines changed Original file line number Diff line number Diff line change @@ -39,19 +39,6 @@ The reference documentation lists [all of the available options](../reference/cl
39
39
40
40
Configuration information can also be put in ` .scala ` and ` .sc ` files using special imports, and the ` using ` directive.
41
41
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
-
55
42
### Using directives
56
43
57
44
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
66
53
```
67
54
68
55
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 ) .
You can’t perform that action at this time.
0 commit comments