|
782 | 782 | comes in via hbase-thirdparty hbase-shaded-netty--> |
783 | 783 | <netty.hadoop.version>3.10.5.Final</netty.hadoop.version> |
784 | 784 | <!-- end HBASE-15925 default hadoop compatibility values --> |
785 | | - <audience-annotations.version>0.5.0</audience-annotations.version> |
| 785 | + <audience-annotations.version>0.13.0</audience-annotations.version> |
| 786 | + <!-- |
| 787 | + The version used when generating javadoc, 0.13.0 is the latest version which supports jdk8. |
| 788 | + When building with jdk11, we will use 0.14.1, please see the build-with-jdk11 profile. |
| 789 | + --> |
| 790 | + <javadoc.audience-annotations.version>0.13.0</javadoc.audience-annotations.version> |
786 | 791 | <avro.version>1.11.0</avro.version> |
787 | 792 | <caffeine.version>2.8.1</caffeine.version> |
788 | 793 | <commons-codec.version>1.13</commons-codec.version> |
|
933 | 938 | this parameter by invoking mvn with -Dbuild.id=$BUILD_ID--> |
934 | 939 | <build.id>${maven.build.timestamp}</build.id> |
935 | 940 | <shell-executable>bash</shell-executable> |
936 | | - <!-- TODO HBASE-15041 clean up our javadocs so jdk8 linter can be used. |
937 | | - property as of javadoc-plugin 3.0.0 --> |
| 941 | + <!-- Still need this to ignore some errors when building javadoc--> |
938 | 942 | <doclint>none</doclint> |
939 | 943 | </properties> |
940 | 944 | <!-- Sorted by groups of dependencies then groupId and artifactId --> |
|
1767 | 1771 | <groupId>org.apache.maven.plugins</groupId> |
1768 | 1772 | <artifactId>maven-compiler-plugin</artifactId> |
1769 | 1773 | <configuration> |
1770 | | - <source>${compileSource}</source> |
1771 | | - <target>${compileSource}</target> |
1772 | 1774 | <showWarnings>true</showWarnings> |
1773 | 1775 | <showDeprecation>false</showDeprecation> |
1774 | 1776 | <useIncrementalCompilation>false</useIncrementalCompilation> |
|
3010 | 3012 | <docletArtifact> |
3011 | 3013 | <groupId>org.apache.yetus</groupId> |
3012 | 3014 | <artifactId>audience-annotations</artifactId> |
3013 | | - <version>${audience-annotations.version}</version> |
| 3015 | + <version>${javadoc.audience-annotations.version}</version> |
3014 | 3016 | </docletArtifact> |
3015 | 3017 | <useStandardDocletOptions>true</useStandardDocletOptions> |
3016 | 3018 | <destDir>apidocs</destDir> |
|
3067 | 3069 | <docletArtifact> |
3068 | 3070 | <groupId>org.apache.yetus</groupId> |
3069 | 3071 | <artifactId>audience-annotations</artifactId> |
3070 | | - <version>${audience-annotations.version}</version> |
| 3072 | + <version>${javadoc.audience-annotations.version}</version> |
3071 | 3073 | </docletArtifact> |
3072 | 3074 | <useStandardDocletOptions>true</useStandardDocletOptions> |
3073 | 3075 | <destDir>testapidocs</destDir> |
|
3157 | 3159 | <profile> |
3158 | 3160 | <id>build-with-jdk8</id> |
3159 | 3161 | <activation> |
3160 | | - <jdk>[1.8,)</jdk> |
| 3162 | + <jdk>1.8</jdk> |
3161 | 3163 | </activation> |
3162 | | - <build> |
3163 | | - <pluginManagement> |
3164 | | - <plugins/> |
3165 | | - </pluginManagement> |
3166 | | - </build> |
| 3164 | + <properties> |
| 3165 | + <maven.compiler.source>${compileSource}</maven.compiler.source> |
| 3166 | + <maven.compiler.target>${compileSource}</maven.compiler.target> |
| 3167 | + </properties> |
3167 | 3168 | </profile> |
3168 | 3169 | <profile> |
3169 | 3170 | <id>build-with-jdk11</id> |
3170 | 3171 | <activation> |
3171 | | - <jdk>[1.11,)</jdk> |
| 3172 | + <jdk>[11,)</jdk> |
3172 | 3173 | </activation> |
3173 | 3174 | <properties> |
3174 | 3175 | <maven.compiler.release>${releaseTarget}</maven.compiler.release> |
|
3188 | 3189 | TODO: replicate logic for windows |
3189 | 3190 | --> |
3190 | 3191 | <surefire.Xmx>2200m</surefire.Xmx> |
| 3192 | + <!-- |
| 3193 | + com.sun.javadoc and com.sun.tools.doclets are both deprecated in java 11 and will |
| 3194 | + fail the javadoc generating, so we need to use yetus 0.14.1 where it uses jdk.javadoc |
| 3195 | + and jdk.javadoc.doclet instead |
| 3196 | + --> |
| 3197 | + <javadoc.audience-annotations.version>0.14.1</javadoc.audience-annotations.version> |
3191 | 3198 | </properties> |
| 3199 | + <build> |
| 3200 | + <pluginManagement> |
| 3201 | + <plugins> |
| 3202 | + <plugin> |
| 3203 | + <groupId>org.apache.maven.plugins</groupId> |
| 3204 | + <artifactId>maven-javadoc-plugin</artifactId> |
| 3205 | + <version>${maven.javadoc.version}</version> |
| 3206 | + <configuration> |
| 3207 | + <source>${compileSource}</source> |
| 3208 | + <!-- |
| 3209 | + Need to add this option to ignore the source errors, epsecially that we reference |
| 3210 | + test code in hbase-testing-util's main code. |
| 3211 | + --> |
| 3212 | + <additionalOptions>--ignore-source-errors</additionalOptions> |
| 3213 | + <additionalJOptions> |
| 3214 | + <additionalJOption>-J-Xmx2G</additionalJOption> |
| 3215 | + <additionalJOption>-J--add-exports</additionalJOption> |
| 3216 | + <additionalJOption>-Jjdk.javadoc/jdk.javadoc.internal.tool=ALL-UNNAMED</additionalJOption> |
| 3217 | + </additionalJOptions> |
| 3218 | + </configuration> |
| 3219 | + </plugin> |
| 3220 | + </plugins> |
| 3221 | + </pluginManagement> |
| 3222 | + </build> |
3192 | 3223 | </profile> |
3193 | 3224 | <!-- profile activated by the Jenkins patch testing job --> |
3194 | 3225 | <profile> |
|
0 commit comments