Skip to content

Commit 32c5590

Browse files
authored
Fix for build under JDK 11 (#1)
1 parent 9b5f359 commit 32c5590

File tree

4 files changed

+4
-6
lines changed

4 files changed

+4
-6
lines changed

gradle/wrapper/gradle-wrapper.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#Mon Oct 07 17:41:06 CEST 2019
2-
distributionUrl=https\://services.gradle.org/distributions/gradle-5.2.1-all.zip
2+
distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.4-all.zip
33
distributionBase=GRADLE_USER_HOME
44
distributionPath=wrapper/dists
55
zipStorePath=wrapper/dists

graphviz-test-example/ex5p.pdf

0 Bytes
Binary file not shown.

src/test/java/guru/nidi/graphviz/model/ExampleTest.java

-2
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,6 @@ void ex2() throws IOException {
127127
graphviz.engine(Engine.TWOPI).render(PNG).toFile(new File("target/ex2-tp.png"));
128128
graphviz.engine(Engine.FDP).render(PNG).toFile(new File("target/ex2-fdp.png"));
129129
graphviz.render(SVG).toFile(new File("target/ex2.svg"));
130-
graphviz.render(JSON).toFile(new File("target/ex2.json"));
131-
graphviz.render(JSON0).toFile(new File("target/ex2.json0"));
132130
graphviz.render(PS).toFile(new File("target/ex2.ps"));
133131
graphviz.render(PS2).toFile(new File("target/ex2.ps2"));
134132
graphviz.render(PLAIN).toFile(new File("target/ex2.plain"));

src/test/java/guru/nidi/graphviz/model/ReadmeTest.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ void ex1() throws IOException {
5252
node("a").with(Color.RED).link(node("b")),
5353
node("b").link(to(node("c")).with(Style.DASHED))
5454
);
55-
Graphviz.fromGraph(g).height(100).render(Format.PNG).toFile(new File("graphviz-test-example/ex1.png"));
55+
Graphviz.fromGraph(g).height(100).width(550).render(Format.PNG).toFile(new File("graphviz-test-example/ex1.png"));
5656
//## end
5757
}
5858

@@ -99,7 +99,7 @@ void ex2() throws IOException {
9999
to(compare).with(Color.RED)),
100100
init.link(mkString));
101101

102-
Graphviz.fromGraph(g).width(900).render(Format.PNG).toFile(new File("graphviz-test-example/ex2.png"));
102+
Graphviz.fromGraph(g).width(900).height(969).render(Format.PNG).toFile(new File("graphviz-test-example/ex2.png"));
103103
//## end
104104
}
105105

@@ -156,7 +156,7 @@ void ex5() throws IOException {
156156
Graphviz viz = Graphviz.fromGraph(g);
157157
viz.width(200).render(Format.SVG).toFile(new File("graphviz-test-example/ex5.svg"));
158158
viz.width(200).rasterize(Rasterizer.SALAMANDER).toFile(new File("graphviz-test-example/ex5s.png"));
159-
viz.width(200).rasterize(Rasterizer.builtIn("pdf")).toFile(new File("graphviz-test-example/ex5p"));
159+
viz.width(200).height(374).rasterize(Rasterizer.builtIn("pdf")).toFile(new File("graphviz-test-example/ex5p"));
160160
String dot = viz.render(Format.DOT).toString();
161161
String json = viz.engine(Engine.NEATO).render(Format.JSON).toString();
162162
BufferedImage image = viz.render(Format.PNG).toImage();

0 commit comments

Comments
 (0)