File tree Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -90,7 +90,13 @@ BUILD_ARG=(
90
90
91
91
if [ " $SIGN_FILE " == true ]; then
92
92
# Build javadoc and sources only when SIGN_FILE is true
93
- BUILD_ARG+=(" -Prelease" )
93
+ if [ $BUILD_JAVADOC_JDK17 == true ]; then
94
+ # Generate javadoc with JDK 17
95
+ yum install -y java-17-openjdk-devel
96
+ export JDK17_HOME=/usr/lib/jvm/java-17-openjdk
97
+ BUILD_ARG+=(" -Prelease,javadoc" )
98
+ else
99
+ BUILD_ARG+=(" -Prelease" )
94
100
fi
95
101
96
102
if [ -f " $WORKSPACE /java/ci/settings.xml" ]; then
101
107
cd " $WORKSPACE /java"
102
108
CUDF_INSTALL_DIR=" $INSTALL_PREFIX " mvn -B clean package " ${BUILD_ARG[@]} "
103
109
104
- # Generate javadoc with JDK 17
105
- if [ $BUILD_JAVADOC_JDK17 == true ]; then
106
- yum install -y java-17-openjdk-devel
107
- export JDK17_HOME=/usr/lib/jvm/java-17-openjdk
108
- CUDF_INSTALL_DIR=" $INSTALL_PREFIX " mvn -B javadoc:jar -P javadoc
109
- fi
110
110
111
111
# ##### Stash Jar files ######
112
112
rm -rf " $OUT_PATH "
Original file line number Diff line number Diff line change 359
359
</build >
360
360
</profile >
361
361
<profile >
362
- <id >javadoc</id >
362
+ <id >javadoc-jdk17 </id >
363
363
<build >
364
364
<plugins >
365
365
<plugin >
366
366
<groupId >org.apache.maven.plugins</groupId >
367
367
<artifactId >maven-javadoc-plugin</artifactId >
368
368
<version >3.6.3</version >
369
369
<configuration >
370
- <classifier >javadoc-jdk17 </classifier >
370
+ <classifier >javadoc</classifier >
371
371
<additionalJOptions >
372
372
<additionalJOption >-Xdoclint:none</additionalJOption >
373
373
</additionalJOptions >
You can’t perform that action at this time.
0 commit comments