Skip to content

Commit 0fb412b

Browse files
committed
Update jackson version to 2.9.8
1 parent 1d4f012 commit 0fb412b

File tree

7 files changed

+56
-52
lines changed

7 files changed

+56
-52
lines changed

cdt-examples/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<maven.compiler.target>1.8</maven.compiler.target>
1818

1919
<logback.version>1.2.3</logback.version>
20-
<jackson.version>2.9.3</jackson.version>
20+
<jackson.version>2.9.8</jackson.version>
2121
<common.codec.version>1.11</common.codec.version>
2222
</properties>
2323

cdt-examples/src/main/java/com/github/kklisura/cdt/examples/PrintingPageToPdf.java

Lines changed: 46 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
import java.util.Base64;
1212

1313
/**
14-
* The following example opens the http://github.com and prints its page to PDF. PDF printing is supported on chrome
15-
* headless at the moment.
14+
* The following example opens the http://github.com and prints its page to PDF. PDF printing is
15+
* supported on chrome headless at the moment.
1616
*
1717
* @author Kenan Klisura
1818
*/
@@ -21,7 +21,8 @@ public static void main(String[] args) {
2121
// Create chrome launcher.
2222
final ChromeLauncher launcher = new ChromeLauncher();
2323

24-
// Launch chrome either as headless (true) - PDF printing is only supported on Chrome headless at the moment
24+
// Launch chrome either as headless (true) - PDF printing is only supported on Chrome headless
25+
// at the moment
2526
final ChromeService chromeService = launcher.launch(true);
2627

2728
// Create empty tab ie about:blank.
@@ -37,49 +38,52 @@ public static void main(String[] args) {
3738
// Navigate to github.com.
3839
page.navigate("http://github.com");
3940

40-
page.onLoadEventFired(loadEventFired -> {
41-
System.out.println("Printing to PDF...");
41+
page.onLoadEventFired(
42+
loadEventFired -> {
43+
System.out.println("Printing to PDF...");
4244

43-
final String outputFilename = "test.pdf";
45+
final String outputFilename = "test.pdf";
4446

45-
Boolean landscape = false;
46-
Boolean displayHeaderFooter = false;
47-
Boolean printBackground = false;
48-
Double scale = 1d;
49-
Double paperWidth = 8.27d; // A4 paper format
50-
Double paperHeight = 11.7d; // A4 paper format
51-
Double marginTop = 0d;
52-
Double marginBottom = 0d;
53-
Double marginLeft = 0d;
54-
Double marginRight = 0d;
55-
String pageRanges = "";
56-
Boolean ignoreInvalidPageRanges = false;
57-
String headerTemplate = "";
58-
String footerTemplate = "";
59-
Boolean preferCSSPageSize = false;
47+
Boolean landscape = false;
48+
Boolean displayHeaderFooter = false;
49+
Boolean printBackground = false;
50+
Double scale = 1d;
51+
Double paperWidth = 8.27d; // A4 paper format
52+
Double paperHeight = 11.7d; // A4 paper format
53+
Double marginTop = 0d;
54+
Double marginBottom = 0d;
55+
Double marginLeft = 0d;
56+
Double marginRight = 0d;
57+
String pageRanges = "";
58+
Boolean ignoreInvalidPageRanges = false;
59+
String headerTemplate = "";
60+
String footerTemplate = "";
61+
Boolean preferCSSPageSize = false;
6062

61-
dump(outputFilename,
62-
devToolsService.getPage().printToPDF(
63-
landscape,
64-
displayHeaderFooter,
65-
printBackground,
66-
scale,
67-
paperWidth,
68-
paperHeight,
69-
marginTop,
70-
marginBottom,
71-
marginLeft,
72-
marginRight,
73-
pageRanges,
74-
ignoreInvalidPageRanges,
75-
headerTemplate,
76-
footerTemplate,
77-
preferCSSPageSize)
78-
);
63+
dump(
64+
outputFilename,
65+
devToolsService
66+
.getPage()
67+
.printToPDF(
68+
landscape,
69+
displayHeaderFooter,
70+
printBackground,
71+
scale,
72+
paperWidth,
73+
paperHeight,
74+
marginTop,
75+
marginBottom,
76+
marginLeft,
77+
marginRight,
78+
pageRanges,
79+
ignoreInvalidPageRanges,
80+
headerTemplate,
81+
footerTemplate,
82+
preferCSSPageSize));
7983

80-
System.out.println("Done!");
81-
devToolsService.close();
82-
});
84+
System.out.println("Done!");
85+
devToolsService.close();
86+
});
8387

8488
devToolsService.waitUntilClosed();
8589
}

cdt-java-client/THIRD-PARTY.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ Lists of 37 third-party dependencies.
33
(ASF 2.0) Code Generation Library (cglib:cglib-nodep:2.2.2 - http://cglib.sourceforge.net/)
44
(Eclipse Public License v1.0) (GNU Lesser General Public License) Logback Classic Module (ch.qos.logback:logback-classic:1.2.3 - http://logback.qos.ch/logback-classic)
55
(Eclipse Public License v1.0) (GNU Lesser General Public License) Logback Core Module (ch.qos.logback:logback-core:1.2.3 - http://logback.qos.ch/logback-core)
6-
(The Apache Software License, Version 2.0) Jackson-annotations (com.fasterxml.jackson.core:jackson-annotations:2.9.7 - http://github.com/FasterXML/jackson)
7-
(The Apache Software License, Version 2.0) Jackson-core (com.fasterxml.jackson.core:jackson-core:2.9.7 - https://github.com/FasterXML/jackson-core)
8-
(The Apache Software License, Version 2.0) jackson-databind (com.fasterxml.jackson.core:jackson-databind:2.9.7 - http://github.com/FasterXML/jackson)
6+
(The Apache Software License, Version 2.0) Jackson-annotations (com.fasterxml.jackson.core:jackson-annotations:2.9.8 - http://github.com/FasterXML/jackson)
7+
(The Apache Software License, Version 2.0) Jackson-core (com.fasterxml.jackson.core:jackson-core:2.9.8 - https://github.com/FasterXML/jackson-core)
8+
(The Apache Software License, Version 2.0) jackson-databind (com.fasterxml.jackson.core:jackson-databind:2.9.8 - http://github.com/FasterXML/jackson)
99
(The Apache Software License, Version 2.0) MockWebServer (com.squareup.okhttp:mockwebserver:2.7.5 - https://github.com/square/okhttp/mockwebserver)
1010
(The Apache Software License, Version 2.0) OkHttp (com.squareup.okhttp:okhttp:2.7.5 - https://github.com/square/okhttp/okhttp)
1111
(The Apache Software License, Version 2.0) OkHttp Web Sockets (com.squareup.okhttp:okhttp-ws:2.7.5 - https://github.com/square/okhttp/okhttp-ws)

cdt-java-client/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
<maven.compiler.source>1.8</maven.compiler.source>
4848
<maven.compiler.target>1.8</maven.compiler.target>
4949

50-
<jackson.version>2.9.7</jackson.version>
50+
<jackson.version>2.9.8</jackson.version>
5151
<websocket.api.version>1.1</websocket.api.version>
5252
<tyrus.version>1.13.1</tyrus.version>
5353
<javassist.version>3.22.0-GA</javassist.version>

cdt-java-protocol-builder/THIRD-PARTY.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ Lists of 74 third-party dependencies.
55
(Eclipse Public License v1.0) (GNU Lesser General Public License) Logback Classic Module (ch.qos.logback:logback-classic:1.2.3 - http://logback.qos.ch/logback-classic)
66
(Eclipse Public License v1.0) (GNU Lesser General Public License) Logback Core Module (ch.qos.logback:logback-core:1.2.3 - http://logback.qos.ch/logback-core)
77
(The Apache Software License, Version 2.0) classworlds (classworlds:classworlds:1.1-alpha-2 - http://classworlds.codehaus.org/)
8-
(The Apache Software License, Version 2.0) Jackson-annotations (com.fasterxml.jackson.core:jackson-annotations:2.9.3 - http://github.com/FasterXML/jackson)
9-
(The Apache Software License, Version 2.0) Jackson-core (com.fasterxml.jackson.core:jackson-core:2.9.3 - https://github.com/FasterXML/jackson-core)
10-
(The Apache Software License, Version 2.0) jackson-databind (com.fasterxml.jackson.core:jackson-databind:2.9.3 - http://github.com/FasterXML/jackson)
8+
(The Apache Software License, Version 2.0) Jackson-annotations (com.fasterxml.jackson.core:jackson-annotations:2.9.8 - http://github.com/FasterXML/jackson)
9+
(The Apache Software License, Version 2.0) Jackson-core (com.fasterxml.jackson.core:jackson-core:2.9.8 - https://github.com/FasterXML/jackson-core)
10+
(The Apache Software License, Version 2.0) jackson-databind (com.fasterxml.jackson.core:jackson-databind:2.9.8 - http://github.com/FasterXML/jackson)
1111
(GNU Lesser General Public License) (The Apache Software License, Version 2.0) javaparser-core (com.github.javaparser:javaparser-core:3.5.11 - https://github.com/javaparser/javaparser-core)
1212
(The Apache Software License, Version 2.0) cdt-protocol-parser (com.github.kklisura.cdt:cdt-protocol-parser:1.0-SNAPSHOT - https://github.com/kklisura/chrome-devtools-java-client)
1313
(The Apache Software License, Version 2.0) FindBugs-jsr305 (com.google.code.findbugs:jsr305:1.3.9 - http://findbugs.sourceforge.net/)

cdt-java-protocol-builder/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
<maven.compiler.target>1.8</maven.compiler.target>
3232

3333
<java.parser.core.version>3.5.11</java.parser.core.version>
34-
<jackson.version>2.9.3</jackson.version>
34+
<jackson.version>2.9.8</jackson.version>
3535
<apache.collections.version>4.1</apache.collections.version>
3636
<apache.lang3.version>3.7</apache.lang3.version>
3737
<lombok.version>1.16.18</lombok.version>

cdt-protocol-parser/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333

3434
<lombok.version>1.16.18</lombok.version>
3535
<java.parser.core.version>3.5.11</java.parser.core.version>
36-
<jackson.version>2.9.3</jackson.version>
36+
<jackson.version>2.9.8</jackson.version>
3737
<junit.version>4.12</junit.version>
3838
<jsonassert.version>1.5.0</jsonassert.version>
3939
</properties>

0 commit comments

Comments
 (0)