Skip to content

Commit b12941f

Browse files
timis1timis1
and
timis1
authored
JAVA-38432 Review add-opens and add-exports in modules - Week 34 - 2024 (#17443)
Co-authored-by: timis1 <[email protected]>
1 parent 1a16bdc commit b12941f

File tree

13 files changed

+10
-54
lines changed

13 files changed

+10
-54
lines changed

checker-framework/pom.xml

-7
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,6 @@
5353
</annotationProcessors>
5454
<compilerArgs combine.children="append">
5555
<arg>-Awarns</arg>
56-
<arg>-J--add-exports=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED</arg>
57-
<arg>-J--add-exports=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED</arg>
58-
<arg>-J--add-exports=jdk.compiler/com.sun.tools.javac.main=ALL-UNNAMED</arg>
59-
<arg>-J--add-exports=jdk.compiler/com.sun.tools.javac.processing=ALL-UNNAMED</arg>
60-
<arg>-J--add-exports=jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED</arg>
61-
<arg>-J--add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED</arg>
62-
<arg>-J--add-opens=jdk.compiler/com.sun.tools.javac.comp=ALL-UNNAMED</arg>
6356
</compilerArgs>
6457
</configuration>
6558
</plugin>

core-java-modules/core-java-20/pom.xml

+6
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,11 @@
3030
<version>${mockito-junit-jupiter.version}</version>
3131
<scope>test</scope>
3232
</dependency>
33+
<dependency>
34+
<groupId>com.google.code.gson</groupId>
35+
<artifactId>gson</artifactId>
36+
<version>${gson.version}</version>
37+
</dependency>
3338
</dependencies>
3439

3540
<build>
@@ -61,6 +66,7 @@
6166
<maven.compiler.source>20</maven.compiler.source>
6267
<maven.compiler.target>20</maven.compiler.target>
6368
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
69+
<gson.version>2.11.0</gson.version>
6470
</properties>
6571

6672
</project>

core-java-modules/core-java-9-new-features/pom.xml

-4
Original file line numberDiff line numberDiff line change
@@ -67,15 +67,11 @@
6767
<configuration>
6868
<source>${maven.compiler.source}</source>
6969
<target>${maven.compiler.target}</target>
70-
<compilerArgument>--add-modules=jdk.incubator.httpclient</compilerArgument>
7170
</configuration>
7271
</plugin>
7372
<plugin>
7473
<artifactId>maven-surefire-plugin</artifactId>
7574
<version>${maven-surefire-plugin.version}</version>
76-
<configuration>
77-
<argLine>--add-modules=jdk.incubator.httpclient</argLine>
78-
</configuration>
7975
</plugin>
8076
</plugins>
8177
</build>

core-java-modules/core-java-collections-maps-8/pom.xml

-5
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,6 @@
3737
<groupId>org.apache.maven.plugins</groupId>
3838
<artifactId>maven-surefire-plugin</artifactId>
3939
<version>${maven-surefire-plugin.version}</version>
40-
<configuration>
41-
<argLine>
42-
--add-opens java.base/java.util=ALL-UNNAMED
43-
</argLine>
44-
</configuration>
4540
</plugin>
4641
</plugins>
4742
</build>

core-java-modules/core-java-jvm-2/pom.xml

-5
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,6 @@
3131
<plugin>
3232
<groupId>org.apache.maven.plugins</groupId>
3333
<artifactId>maven-compiler-plugin</artifactId>
34-
<configuration>
35-
<compilerArgs>
36-
<arg>--add-exports=java.base/jdk.internal.vm.annotation=ALL-UNNAMED</arg>
37-
</compilerArgs>
38-
</configuration>
3934
</plugin>
4035
</plugins>
4136
</build>

jmh/pom.xml

-5
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,6 @@
4141
<plugin>
4242
<groupId>org.apache.maven.plugins</groupId>
4343
<artifactId>maven-compiler-plugin</artifactId>
44-
<configuration>
45-
<compilerArgs>
46-
<arg>--add-exports=java.base/jdk.internal.vm.annotation=ALL-UNNAMED</arg>
47-
</compilerArgs>
48-
</configuration>
4944
</plugin>
5045
<plugin>
5146
<groupId>org.apache.maven.plugins</groupId>

libraries-data-2/pom.xml

-1
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,6 @@
149149
<version>${maven-surefire-plugin.version}</version>
150150
<configuration>
151151
<argLine>
152-
--add-opens java.base/java.lang=ALL-UNNAMED
153152
--add-opens java.base/java.util=ALL-UNNAMED
154153
</argLine>
155154
</configuration>

libraries-data-3/pom.xml

+4-1
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,10 @@
9191
<artifactId>maven-surefire-plugin</artifactId>
9292
<version>${maven-surefire-plugin.version}</version>
9393
<configuration>
94-
<argLine>--add-exports=java.base/jdk.internal.ref=ALL-UNNAMED --add-exports=java.base/sun.nio.ch=ALL-UNNAMED --add-exports=jdk.unsupported/sun.misc=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED --add-opens=jdk.compiler/com.sun.tools.javac=ALL-UNNAMED --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.lang.reflect=ALL-UNNAMED --add-opens=java.base/java.io=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED</argLine>
94+
<argLine>
95+
--add-exports=java.base/sun.nio.ch=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED
96+
--add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.lang.reflect=ALL-UNNAMED
97+
</argLine>
9598
</configuration>
9699
</plugin>
97100
</plugins>

spring-remoting-modules/remoting-hessian-burlap/remoting-hessian-burlap-server/pom.xml

-5
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,6 @@
3535
<groupId>org.apache.maven.plugins</groupId>
3636
<artifactId>maven-surefire-plugin</artifactId>
3737
<version>${maven-surefire-plugin.version}</version>
38-
<configuration>
39-
<argLine>
40-
--add-opens java.base/java.lang=ALL-UNNAMED
41-
</argLine>
42-
</configuration>
4338
</plugin>
4439
</plugins>
4540
</build>

spring-security-modules/spring-security-web-sockets/pom.xml

-6
Original file line numberDiff line numberDiff line change
@@ -162,12 +162,6 @@
162162
<groupId>org.apache.maven.plugins</groupId>
163163
<artifactId>maven-surefire-plugin</artifactId>
164164
<version>${maven-surefire-plugin.version}</version>
165-
<configuration>
166-
<argLine>
167-
--add-opens java.base/java.lang=ALL-UNNAMED
168-
--add-opens java.base/java.lang.invoke=ALL-UNNAMED
169-
</argLine>
170-
</configuration>
171165
</plugin>
172166
</plugins>
173167
</build>

spring-web-modules/spring-mvc-xml-2/pom.xml

-5
Original file line numberDiff line numberDiff line change
@@ -79,11 +79,6 @@
7979
<groupId>org.apache.maven.plugins</groupId>
8080
<artifactId>maven-surefire-plugin</artifactId>
8181
<version>${maven-surefire-plugin.version}</version>
82-
<configuration>
83-
<argLine>
84-
--add-opens java.base/java.lang=ALL-UNNAMED
85-
</argLine>
86-
</configuration>
8782
</plugin>
8883
<plugin>
8984
<groupId>org.apache.maven.plugins</groupId>

spring-web-modules/spring-mvc-xml/pom.xml

-5
Original file line numberDiff line numberDiff line change
@@ -126,11 +126,6 @@
126126
<groupId>org.apache.maven.plugins</groupId>
127127
<artifactId>maven-surefire-plugin</artifactId>
128128
<version>${maven-surefire-plugin.version}</version>
129-
<configuration>
130-
<argLine>
131-
--add-opens java.base/java.lang=ALL-UNNAMED
132-
</argLine>
133-
</configuration>
134129
</plugin>
135130
</plugins>
136131
</build>

web-modules/jee-7/pom.xml

-5
Original file line numberDiff line numberDiff line change
@@ -361,11 +361,6 @@
361361
<groupId>org.apache.maven.plugins</groupId>
362362
<artifactId>maven-surefire-plugin</artifactId>
363363
<version>${maven-surefire-plugin.version}</version>
364-
<configuration>
365-
<argLine>
366-
--add-opens java.base/java.lang=ALL-UNNAMED
367-
</argLine>
368-
</configuration>
369364
</plugin>
370365
</plugins>
371366
</build>

0 commit comments

Comments
 (0)