Skip to content

Commit 16a1a73

Browse files
committed
add maven-jdeps-plugin to prevent accidential usage of jdk internal apis
1 parent b6237f9 commit 16a1a73

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

pom.xml

+13
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,7 @@
180180
<maven.release.plugin.version>2.5.3</maven.release.plugin.version>
181181
<maven.scm.plugin.version>1.9.5</maven.scm.plugin.version>
182182
<maven.deploy.plugin.version>2.8.2</maven.deploy.plugin.version>
183+
<maven.jdeps.plugin.version>3.1.0</maven.jdeps.plugin.version>
183184
<nexus.staging.maven.plugin.version>1.6.8</nexus.staging.maven.plugin.version>
184185
</properties>
185186

@@ -438,6 +439,18 @@
438439
</pluginManagement>
439440

440441
<plugins>
442+
<plugin>
443+
<artifactId>maven-jdeps-plugin</artifactId>
444+
<version>${maven.jdeps.plugin.version}</version>
445+
<executions>
446+
<execution>
447+
<goals>
448+
<goal>jdkinternals</goal> <!-- verify main classes -->
449+
<goal>test-jdkinternals</goal> <!-- verify test classes -->
450+
</goals>
451+
</execution>
452+
</executions>
453+
</plugin>
441454
<plugin>
442455
<groupId>org.codehaus.mojo</groupId>
443456
<artifactId>buildnumber-maven-plugin</artifactId>

0 commit comments

Comments
 (0)