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 22497f9  [SPARK-53407] Use `baseDirectory` instead of `baseDir`
22497f9 is described below

commit 22497f9b0d6582b41361a49f171780454da7cae8
Author: Dongjoon Hyun <dongj...@apache.org>
AuthorDate: Wed Aug 27 21:55:10 2025 -0700

    [SPARK-53407] Use `baseDirectory` instead of `baseDir`
    
    ### What changes were proposed in this pull request?
    
    This PR aims to use `reporting.baseDirectory` instead of 
`reporting.baseDir`.
    
    ### Why are the changes needed?
    
    `reporting.baseDir` was deprecated at Gradle 8 and removed at Gradle 9.
    
    - 
https://docs.gradle.org/current/userguide/upgrading_version_8.html#reporting-base-dir
      > ReportingExtension.getBaseDir(), `ReportingExtension.setBaseDir(File), 
and ReportingExtension.setBaseDir(Object) were deprecated. They should be 
replaced with ReportingExtension.getBaseDirectory() property.
    
    - 
https://docs.gradle.org/current/dsl/org.gradle.api.reporting.ReportingExtension.html
    
    ### Does this PR introduce _any_ user-facing change?
    
    No.
    
    ### How was this patch tested?
    
    Pass the CIs.
    
    ### Was this patch authored or co-authored using generative AI tooling?
    
    No.
    
    Closes #300 from dongjoon-hyun/SPARK-53407.
    
    Authored-by: Dongjoon Hyun <dongj...@apache.org>
    Signed-off-by: Dongjoon Hyun <dongj...@apache.org>
---
 build.gradle | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/build.gradle b/build.gradle
index 256b6bf..cc04c85 100644
--- a/build.gradle
+++ b/build.gradle
@@ -84,7 +84,7 @@ subprojects {
     spotbugs {
       toolVersion = libs.versions.spotbugs.tool.get()
       afterEvaluate {
-        reportsDir = file("${project.reporting.baseDir}/findbugs")
+        reportsDir = file("${project.reporting.baseDirectory}/findbugs")
       }
       excludeFilter = file("$rootDir/config/spotbugs/spotbugs_exclude.xml")
       ignoreFailures = false


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@spark.apache.org
For additional commands, e-mail: commits-h...@spark.apache.org

Reply via email to