This is an automated email from the ASF dual-hosted git repository. slfan1989 pushed a commit to branch trunk in repository https://gitbox.apache.org/repos/asf/hadoop.git
The following commit(s) were added to refs/heads/trunk by this push: new f931ede86b6 HADOOP-19298. [JDK17] Add a JDK17 profile. (#7085) Contributed by Shilun Fan. f931ede86b6 is described below commit f931ede86b635b1a92d6208138c2c6692ed616bc Author: slfan1989 <55643692+slfan1...@users.noreply.github.com> AuthorDate: Fri Oct 18 17:16:33 2024 +0800 HADOOP-19298. [JDK17] Add a JDK17 profile. (#7085) Contributed by Shilun Fan. Reviewed-by: Steve Loughran <ste...@apache.org> Reviewed-by: Attila Doroszlai <adorosz...@apache.org> Reviewed-by: Cheng Pan <cheng...@apache.org> Reviewed-by: Min Yan <yaom...@gmail.com> Signed-off-by: Shilun Fan <slfan1...@apache.org> --- hadoop-project/pom.xml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/hadoop-project/pom.xml b/hadoop-project/pom.xml index faf76544aff..4e0b7475cc5 100644 --- a/hadoop-project/pom.xml +++ b/hadoop-project/pom.xml @@ -2754,6 +2754,16 @@ </dependencies> </dependencyManagement> </profile> + <!-- We added this profile to support compilation for JDK 9 and above. --> + <profile> + <id>java9</id> + <activation> + <jdk>[9,)</jdk> + </activation> + <properties> + <maven.compiler.release>${javac.version}</maven.compiler.release> + </properties> + </profile> </profiles> <repositories> --------------------------------------------------------------------- To unsubscribe, e-mail: common-commits-unsubscr...@hadoop.apache.org For additional commands, e-mail: common-commits-h...@hadoop.apache.org