Skip to content

Commit 0451822

Browse files
author
Brix
committed
fixed module-info using "requires static" for optional and test-only
pom-dependencies.
1 parent 1652d87 commit 0451822

File tree

1 file changed

+18
-10
lines changed

1 file changed

+18
-10
lines changed

src/main/java/module-info.java

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
module com.jsoniter {
2+
3+
exports com.jsoniter;
4+
25
exports com.jsoniter.fuzzy;
36

47
exports com.jsoniter.static_codegen;
@@ -9,22 +12,27 @@
912

1013
exports com.jsoniter.annotation;
1114

12-
exports com.jsoniter;
13-
1415
exports com.jsoniter.spi;
1516

1617
exports com.jsoniter.any;
17-
18-
requires com.fasterxml.jackson.annotation;
1918

20-
requires com.fasterxml.jackson.core;
2119

22-
requires com.fasterxml.jackson.databind;
23-
24-
requires javassist;
20+
/** static, because marked as optional in pom.xml*/
21+
requires static javassist;
22+
23+
/** static, because marked as optional in pom.xml*/
24+
requires static com.fasterxml.jackson.core;
2525

26-
requires com.google.gson;
26+
/** static, because marked as optional in pom.xml*/
27+
requires static com.fasterxml.jackson.annotation;
28+
29+
/** static, because marked as optional in pom.xml*/
30+
requires static com.fasterxml.jackson.databind;
31+
32+
/** static, because marked as optional in pom.xml*/
33+
requires static com.google.gson;
2734

28-
requires java.desktop;
35+
/** static, because only used in testing */
36+
requires static java.desktop;
2937

3038
}

0 commit comments

Comments
 (0)