You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by ah...@apache.org on 2023/07/29 11:59:45 UTC
[commons-rng] branch master updated: Fix for GH actions build on Java 11+ for the JPMS modules
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 a0d03339 Fix for GH actions build on Java 11+ for the JPMS modules
a0d03339 is described below
commit a0d0333990810de855510798f7607f0a702d0afb
Author: Alex Herbert <ah...@apache.org>
AuthorDate: Sat Jul 29 12:59:05 2023 +0100
Fix for GH actions build on Java 11+ for the JPMS modules
Run the javadoc tool separately from the build.
---
.github/workflows/maven.yml | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml
index 4a603df6..399745ac 100644
--- a/.github/workflows/maven.yml
+++ b/.github/workflows/maven.yml
@@ -43,6 +43,11 @@ jobs:
if: matrix.java == 8
run: mvn -V --no-transfer-progress
- name: Build with Maven including examples
- # Examples require Java 11+
+ # Examples require Java 11+.
+ # Building javadoc errors when run with the package phase with an error about
+ # the module path and the unamed module (despite using an automatic module name).
+ # Here we run the build and javadoc generation separately (which requires install of sources)
if: matrix.java > 8
- run: mvn -V --no-transfer-progress -P commons-rng-examples
+ run: |
+ mvn -V --no-transfer-progress -P commons-numbers-examples clean install -Dmaven.javadoc.skip
+ mvn -P commons-numbers-examples javadoc:javadoc