This is an automated email from the ASF dual-hosted git repository.

aherbert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-rng.git


The following commit(s) were added to refs/heads/master by this push:
     new 7267fb93 Do not export the internal module
7267fb93 is described below

commit 7267fb93bad5204c596ea43fad4563de01034e2f
Author: Alex Herbert <aherb...@apache.org>
AuthorDate: Thu Jul 4 14:15:03 2024 +0100

    Do not export the internal module
---
 commons-rng-simple/pom.xml | 29 +++++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)

diff --git a/commons-rng-simple/pom.xml b/commons-rng-simple/pom.xml
index d38468f0..f36bde6f 100644
--- a/commons-rng-simple/pom.xml
+++ b/commons-rng-simple/pom.xml
@@ -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>

Reply via email to