Skip to content

Commit 4fbcbb4

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

File tree

2 files changed

+20
-10
lines changed

2 files changed

+20
-10
lines changed

pom.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,7 @@
162162
</execution>
163163
</executions>
164164
</plugin>
165+
<!--
165166
<plugin>
166167
<groupId>org.apache.maven.plugins</groupId>
167168
<artifactId>maven-gpg-plugin</artifactId>
@@ -176,6 +177,7 @@
176177
</execution>
177178
</executions>
178179
</plugin>
180+
-->
179181
<plugin>
180182
<groupId>org.sonatype.plugins</groupId>
181183
<artifactId>nexus-staging-maven-plugin</artifactId>

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)