Skip to content

Commit 903bccf

Browse files
author
nicolaiparlog
committed
Include JDeps Maven plugin to prevent dependencies on JDK-internal APIs
1 parent 3a83b74 commit 903bccf

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

pom.xml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,19 @@
124124
<target>1.8</target>
125125
</configuration>
126126
</plugin>
127+
<plugin>
128+
<!-- prevent JDK internal API from sneaking in -->
129+
<groupId>org.codefx.maven.plugin</groupId>
130+
<artifactId>jdeps-maven-plugin</artifactId>
131+
<version>0.1</version>
132+
<executions>
133+
<execution>
134+
<goals>
135+
<goal>jdkinternals</goal>
136+
</goals>
137+
</execution>
138+
</executions>
139+
</plugin>
127140
<plugin>
128141
<!-- create sources.jar -->
129142
<groupId>org.apache.maven.plugins</groupId>

0 commit comments

Comments
 (0)