Skip to content

Commit 18308d8

Browse files
0.1.3
1 parent eb37c45 commit 18308d8

File tree

3 files changed

+10
-16
lines changed

3 files changed

+10
-16
lines changed

build.sc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import mill._, scalalib._, publish._
2-
val sjsonnetVersion = "0.1.2"
2+
val sjsonnetVersion = "0.1.3"
33

44
trait SjsonnetJavaModule extends PublishModule{
55
def publishVersion = sjsonnetVersion

readme.md

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,34 +11,31 @@ Sjsonnet can be used from Java:
1111
<dependency>
1212
<groupId>com.lihaoyi</groupId>
1313
<artifactId>sjsonnet_2.12</artifactId>
14-
<version>0.1.2</version>
14+
<version>0.1.3</version>
1515
</dependency>
1616
```
1717
```java
1818
sjsonnet.SjsonnetMain.main0(
1919
new String[]{"foo.jsonnet"},
20-
new sjsonnet.Parser(),
20+
sjsonnet.SjsonnetMain.createParseCache(),
2121
System.in,
2222
System.out,
2323
System.err,
24-
os.Path.apply(
25-
System.getProperty("user.dir"), // working directory
26-
os.PathConvertible.StringConvertible$.MODULE$
27-
)
24+
os.package$.MODULE$.pwd()
2825
);
2926
```
3027

3128
From Scala:
3229

3330
```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
3633
```
3734

3835
```scala
3936
sjsonnet.SjsonnetMain.main0(
4037
Array("foo.jsonnet"),
41-
new sjsonnet.Parser(),
38+
sjsonnet.SjsonnetMain.createParseCache(),
4239
System.in,
4340
System.out,
4441
System.err,
@@ -47,10 +44,10 @@ sjsonnet.SjsonnetMain.main0(
4744
```
4845
Or as a standalone executable assembly:
4946

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
5148

5249
```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
5451

5552
$ chmod +x sjsonnet.jar
5653

sjsonnet/test/src/sjsonnet/Example.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,7 @@ public void example(){
88
System.in,
99
System.out,
1010
System.err,
11-
os.Path.apply(
12-
System.getProperty("user.dir"), // working directory
13-
os.PathConvertible.StringConvertible$.MODULE$
14-
)
11+
os.package$.MODULE$.pwd()
1512
);
1613
}
1714
}

0 commit comments

Comments
 (0)