Skip to content

Commit ef8befa

Browse files
committed
Convert hibernate5-jakarta to JPMS (from Moditect)
1 parent 8d6695f commit ef8befa

File tree

4 files changed

+29
-10
lines changed

4 files changed

+29
-10
lines changed

hibernate5-jakarta/pom.xml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -105,15 +105,6 @@ Hibernate (https://hibernate.org) version 5.5 with Jakarta data types.
105105
<argLine>--add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED</argLine>
106106
</configuration>
107107
</plugin>
108-
109-
<plugin>
110-
<groupId>org.moditect</groupId>
111-
<artifactId>moditect-maven-plugin</artifactId>
112-
<inherited>true</inherited>
113-
<configuration>
114-
<jvmVersion>11</jvmVersion>
115-
</configuration>
116-
</plugin>
117108
<!-- 05-Jul-2020, tatu: Add generation of Gradle Module Metadata -->
118109
<!-- 28-Feb-2025, jjohannes: Apply plugin last as it has to be the last of all 'package phase' plugins -->
119110
<plugin>
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
// Hibernate 5 (jakarta) Jackson datatype module: Test
2+
module tools.jackson.datatype.hibernate5.jakarta
3+
{
4+
requires tools.jackson.core;
5+
requires tools.jackson.databind;
6+
requires static com.fasterxml.jackson.annotation;
7+
8+
requires org.hibernate.orm.core;
9+
10+
requires static jakarta.activation;
11+
requires static jakarta.persistence;
12+
13+
exports tools.jackson.datatype.hibernate5.jakarta;
14+
opens tools.jackson.datatype.hibernate5.jakarta;
15+
16+
// Test additions
17+
requires org.junit.jupiter.api;
18+
19+
exports tools.jackson.datatype.hibernate5.jakarta.data;
20+
opens tools.jackson.datatype.hibernate5.jakarta.data;
21+
22+
provides tools.jackson.databind.JacksonModule with
23+
tools.jackson.datatype.hibernate5.jakarta.Hibernate5JakartaModule;
24+
}

hibernate7/pom.xml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,13 +80,17 @@ Hibernate (https://hibernate.org/) version 7.x with Jakarta data types.
8080
<target>17</target>
8181
</configuration>
8282
</plugin>
83+
<!-- 05-Nov-2025, tatu: Could not figure out how to make it all work
84+
with separate test `module-info.java`, so for now just open up access
85+
-->
8386
<plugin>
8487
<groupId>org.apache.maven.plugins</groupId>
8588
<artifactId>maven-surefire-plugin</artifactId>
8689
<configuration>
8790
<argLine>--add-opens=java.base/java.lang=ALL-UNNAMED
8891
--add-opens=java.base/java.util=ALL-UNNAMED
89-
--add-opens=tools.jackson.datatype.hibernate7/tools.jackson.datatype.hibernate7.data=ALL-UNNAMED --add-opens=tools.jackson.datatype.hibernate7/tools.jackson.datatype.hibernate7.data=org.hibernate.orm.core
92+
--add-opens=tools.jackson.datatype.hibernate7/tools.jackson.datatype.hibernate7.data=ALL-UNNAMED
93+
--add-opens=tools.jackson.datatype.hibernate7/tools.jackson.datatype.hibernate7.data=org.hibernate.orm.core
9094
--add-opens=tools.jackson.datatype.hibernate7/tools.jackson.datatype.hibernate7.data=tools.jackson.databind
9195
</argLine>
9296
</configuration>

0 commit comments

Comments
 (0)