Skip to content

Commit 2eb02db

Browse files
authored
Fix #52: change to use module-info.java directly (#53)
1 parent e46f87d commit 2eb02db

File tree

16 files changed

+133
-37
lines changed

16 files changed

+133
-37
lines changed

jakarta-jsonp/pom.xml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,6 @@ working with JSON-P (JSON Processing) node types (new Jakarta flavor) via data-b
4949
<groupId>com.google.code.maven-replacer-plugin</groupId>
5050
<artifactId>replacer</artifactId>
5151
</plugin>
52-
<plugin>
53-
<groupId>org.moditect</groupId>
54-
<artifactId>moditect-maven-plugin</artifactId>
55-
</plugin>
5652
</plugins>
5753
</build>
5854

jakarta-jsonp/src/moditect/module-info.java renamed to jakarta-jsonp/src/main/java/module-info.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
// Copied+modified from jsr-353 ones on 04-Mar-2021
2-
module tools.jackson.datatype.jsonp {
1+
// Jakarta JSONP module Main artifact Module descriptor
2+
module tools.jackson.datatype.jsonp
3+
{
34
requires tools.jackson.core;
4-
requires tools.jackson.databind;
5+
requires transitive tools.jackson.databind;
56

67
requires jakarta.json;
78

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
// Jakarta JSONP module (unit) Test Module descriptor
2+
module tools.jackson.datatype.jsonp
3+
{
4+
// Since we are not split from Main artifact, will not
5+
// need to depend on Main artifact -- but need its dependencies
6+
7+
requires tools.jackson.core;
8+
requires tools.jackson.databind;
9+
10+
requires jakarta.json;
11+
12+
// // Actual Test dependencies
13+
requires java.desktop; // @ConstructorProperties
14+
15+
// Additional test lib/framework dependencies
16+
requires junit; // JUnit 4
17+
18+
// Further, need to open up test packages for JUnit et al
19+
opens tools.jackson.datatype.jsonp;
20+
}

jakarta-mail/pom.xml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,6 @@ working with Jakarta Mail types
3838
<groupId>com.google.code.maven-replacer-plugin</groupId>
3939
<artifactId>replacer</artifactId>
4040
</plugin>
41-
<plugin>
42-
<groupId>org.moditect</groupId>
43-
<artifactId>moditect-maven-plugin</artifactId>
44-
</plugin>
4541
</plugins>
4642
</build>
4743
</project>

jakarta-mail/src/moditect/module-info.java renamed to jakarta-mail/src/main/java/module-info.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
// Copied+modified from jakarta-jsonp one on 20-Aug-2021
2-
module tools.jackson.datatype.jakarta.mail {
1+
// Jakarta Mail module Main artifact Module descriptor
2+
module tools.jackson.datatype.jakarta_mail
3+
{
34
requires tools.jackson.core;
4-
requires tools.jackson.databind;
5+
requires transitive tools.jackson.databind;
56

67
requires jakarta.mail;
78

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
// Jakarta Mail module (unit) Test Module descriptor
2+
module tools.jackson.datatype.jakarta_mail
3+
{
4+
// Since we are not split from Main artifact, will not
5+
// need to depend on Main artifact -- but need its dependencies
6+
7+
requires tools.jackson.core;
8+
requires tools.jackson.databind;
9+
10+
requires jakarta.mail;
11+
12+
// Additional test lib/framework dependencies
13+
requires junit; // JUnit 4
14+
15+
// Further, need to open up test packages for JUnit et al
16+
opens tools.jackson.datatype.jakarta.mail;
17+
}

joda-money/pom.xml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
<dependency>
2929
<groupId>org.joda</groupId>
3030
<artifactId>joda-money</artifactId>
31-
<version>1.0.1</version>
31+
<version>1.0.5</version>
3232
</dependency>
3333
<dependency>
3434
<groupId>pl.pragmatists</groupId>
@@ -44,10 +44,6 @@
4444
<groupId>com.google.code.maven-replacer-plugin</groupId>
4545
<artifactId>replacer</artifactId>
4646
</plugin>
47-
<plugin>
48-
<groupId>org.moditect</groupId>
49-
<artifactId>moditect-maven-plugin</artifactId>
50-
</plugin>
5147
</plugins>
5248
</build>
5349

joda-money/src/moditect/module-info.java renamed to joda-money/src/main/java/module-info.java

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
1-
module tools.jackson.datatype.joda {
1+
// Joda-Money module Main artifact Module descriptor
2+
module tools.jackson.datatype.joda
3+
{
24
requires com.fasterxml.jackson.annotation;
35
requires tools.jackson.core;
4-
requires tools.jackson.databind;
5-
requires joda.money;
6+
requires transitive tools.jackson.databind;
7+
8+
requires org.joda.money;
69

710
exports tools.jackson.datatype.jodamoney;
811

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
// Joda-Money module (unit) Test Module descriptor
2+
module tools.jackson.datatype.joda
3+
{
4+
// Since we are not split from Main artifact, will not
5+
// need to depend on Main artifact -- but need its dependencies
6+
7+
requires com.fasterxml.jackson.annotation;
8+
requires tools.jackson.core;
9+
requires tools.jackson.databind;
10+
11+
requires org.joda.money;
12+
13+
// Additional test lib/framework dependencies
14+
requires junit; // JUnit 4
15+
16+
// Further, need to open up test packages for JUnit et al
17+
opens tools.jackson.datatype.jodamoney;
18+
}

json-org/pom.xml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ mainly to make it easier to upgrade code to Jackson, using automated conversions
2929
<dependency>
3030
<groupId>org.json</groupId>
3131
<artifactId>json</artifactId>
32-
<version>20231013</version>
32+
<version>20250107</version>
3333
</dependency>
3434
</dependencies>
3535

@@ -39,10 +39,6 @@ mainly to make it easier to upgrade code to Jackson, using automated conversions
3939
<groupId>com.google.code.maven-replacer-plugin</groupId>
4040
<artifactId>replacer</artifactId>
4141
</plugin>
42-
<plugin>
43-
<groupId>org.moditect</groupId>
44-
<artifactId>moditect-maven-plugin</artifactId>
45-
</plugin>
4642
</plugins>
4743
</build>
4844

0 commit comments

Comments
 (0)