This is an automated email from the ASF dual-hosted git repository. dongjoon pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/spark-kubernetes-operator.git
The following commit(s) were added to refs/heads/main by this push: new 167047a [SPARK-48015] Update `build.gradle` to fix deprecation warnings 167047a is described below commit 167047abed12ea8e6d709dbb3c6c326330d5787e Author: Dongjoon Hyun <dongj...@apache.org> AuthorDate: Fri Apr 26 14:58:08 2024 -0700 [SPARK-48015] Update `build.gradle` to fix deprecation warnings ### What changes were proposed in this pull request? This PR aims to update `build.gradle` to fix deprecation warnings. ### Why are the changes needed? **AFTER** ``` $ ./gradlew build --warning-mode all > Configure project :spark-operator-api Updating PrinterColumns for generated CRD BUILD SUCCESSFUL in 331ms 16 actionable tasks: 16 up-to-date ``` **BEFORE** ``` $ ./gradlew build --warning-mode all > Configure project : Build file '/Users/dongjoon/APACHE/spark-kubernetes-operator/build.gradle': line 20 The org.gradle.api.plugins.JavaPluginConvention type has been deprecated. This is scheduled to be removed in Gradle 9.0. Consult the upgrading guide for further information: https://docs.gradle.org/8.7/userguide/upgrading_version_8.html#java_convention_deprecation at build_1ab30mf3g41rlj3ezxkowdftr$_run_closure1.doCall$original(/Users/dongjoon/APACHE/spark-kubernetes-operator/build.gradle:20) (Run with --stacktrace to get the full stack trace of this deprecation warning.) at build_1ab30mf3g41rlj3ezxkowdftr.run(/Users/dongjoon/APACHE/spark-kubernetes-operator/build.gradle:16) (Run with --stacktrace to get the full stack trace of this deprecation warning.) Build file '/Users/dongjoon/APACHE/spark-kubernetes-operator/build.gradle': line 21 The org.gradle.api.plugins.JavaPluginConvention type has been deprecated. This is scheduled to be removed in Gradle 9.0. Consult the upgrading guide for further information: https://docs.gradle.org/8.7/userguide/upgrading_version_8.html#java_convention_deprecation at build_1ab30mf3g41rlj3ezxkowdftr$_run_closure1.doCall$original(/Users/dongjoon/APACHE/spark-kubernetes-operator/build.gradle:21) (Run with --stacktrace to get the full stack trace of this deprecation warning.) at build_1ab30mf3g41rlj3ezxkowdftr.run(/Users/dongjoon/APACHE/spark-kubernetes-operator/build.gradle:16) (Run with --stacktrace to get the full stack trace of this deprecation warning.) Build file '/Users/dongjoon/APACHE/spark-kubernetes-operator/build.gradle': line 25 The RepositoryHandler.jcenter() method has been deprecated. This is scheduled to be removed in Gradle 9.0. JFrog announced JCenter's sunset in February 2021. Use mavenCentral() instead. Consult the upgrading guide for further information: https://docs.gradle.org/8.7/userguide/upgrading_version_6.html#jcenter_deprecation at build_1ab30mf3g41rlj3ezxkowdftr$_run_closure1$_closure2.doCall$original(/Users/dongjoon/APACHE/spark-kubernetes-operator/build.gradle:25) (Run with --stacktrace to get the full stack trace of this deprecation warning.) at build_1ab30mf3g41rlj3ezxkowdftr$_run_closure1.doCall$original(/Users/dongjoon/APACHE/spark-kubernetes-operator/build.gradle:23) (Run with --stacktrace to get the full stack trace of this deprecation warning.) > Configure project :spark-operator-api Updating PrinterColumns for generated CRD BUILD SUCCESSFUL in 353ms 16 actionable tasks: 16 up-to-date ``` ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? Manually build with `--warning-mode all`. ``` $ ./gradlew build --warning-mode all > Configure project :spark-operator-api Updating PrinterColumns for generated CRD BUILD SUCCESSFUL in 331ms 16 actionable tasks: 16 up-to-date ``` ### Was this patch authored or co-authored using generative AI tooling? No. Closes #9 from dongjoon-hyun/SPARK-48015. Authored-by: Dongjoon Hyun <dongj...@apache.org> Signed-off-by: Dongjoon Hyun <dongj...@apache.org> --- build.gradle | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/build.gradle b/build.gradle index ed54f7b..a6c1701 100644 --- a/build.gradle +++ b/build.gradle @@ -17,12 +17,14 @@ subprojects { apply plugin: 'idea' apply plugin: 'eclipse' apply plugin: 'java' - sourceCompatibility = 17 - targetCompatibility = 17 + + java { + sourceCompatibility = 17 + targetCompatibility = 17 + } repositories { mavenCentral() - jcenter() } apply plugin: 'checkstyle' --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@spark.apache.org For additional commands, e-mail: commits-h...@spark.apache.org