Skip to content

Commit

Permalink
Do not export the internal module
Browse files Browse the repository at this point in the history
  • Loading branch information
aherbert committed Jul 4, 2024
1 parent d0a4092 commit 7267fb9
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions commons-rng-simple/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -80,4 +80,33 @@
</plugins>
</build>

<profiles>
<profile>
<id>java-9-up</id>
<activation>
<jdk>[9,)</jdk>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.moditect</groupId>
<artifactId>moditect-maven-plugin</artifactId>
<version>${commons.moditect-maven-plugin.version}</version>
<configuration>
<module>
<moduleInfo>
<!-- Do not export the internal package -->
<exports>
!${commons.module.name}*.internal*;
*;
</exports>
</moduleInfo>
</module>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>

</project>

0 comments on commit 7267fb9

Please sign in to comment.