@@ -11,34 +11,31 @@ Sjsonnet can be used from Java:
11
11
<dependency >
12
12
<groupId >com.lihaoyi</groupId >
13
13
<artifactId >sjsonnet_2.12</artifactId >
14
- <version >0.1.2 </version >
14
+ <version >0.1.3 </version >
15
15
</dependency >
16
16
```
17
17
``` java
18
18
sjsonnet. SjsonnetMain . main0(
19
19
new String []{" foo.jsonnet" },
20
- new sjsonnet. Parser (),
20
+ sjsonnet. SjsonnetMain . createParseCache (),
21
21
System . in,
22
22
System . out,
23
23
System . err,
24
- os. Path . apply(
25
- System . getProperty(" user.dir" ), // working directory
26
- os. PathConvertible . StringConvertible $. MODULE $
27
- )
24
+ os. package$. MODULE $. pwd()
28
25
);
29
26
```
30
27
31
28
From Scala:
32
29
33
30
``` scala
34
- " com.lihaoyi" %% " sjsonnet" % " 0.1.2 " // SBT
35
- ivy " com.lihaoyi::sjsonnet:0.1.2 " // Mill
31
+ " com.lihaoyi" %% " sjsonnet" % " 0.1.3 " // SBT
32
+ ivy " com.lihaoyi::sjsonnet:0.1.3 " // Mill
36
33
```
37
34
38
35
``` scala
39
36
sjsonnet.SjsonnetMain .main0(
40
37
Array (" foo.jsonnet" ),
41
- new sjsonnet.Parser (),
38
+ sjsonnet.SjsonnetMain .createParseCache (),
42
39
System .in,
43
40
System .out,
44
41
System .err,
@@ -47,10 +44,10 @@ sjsonnet.SjsonnetMain.main0(
47
44
```
48
45
Or as a standalone executable assembly:
49
46
50
- - https://github.com/lihaoyi/sjsonnet/releases/download/0.1.2 /sjsonnet.jar
47
+ - https://github.com/lihaoyi/sjsonnet/releases/download/0.1.3 /sjsonnet.jar
51
48
52
49
``` bash
53
- $ curl -L https://github.com/lihaoyi/sjsonnet/releases/download/0.1.2 /sjsonnet.jar > sjsonnet.jar
50
+ $ curl -L https://github.com/lihaoyi/sjsonnet/releases/download/0.1.3 /sjsonnet.jar > sjsonnet.jar
54
51
55
52
$ chmod +x sjsonnet.jar
56
53
0 commit comments