This is an automated email from the ASF dual-hosted git repository.

mittal pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/kafka.git


The following commit(s) were added to refs/heads/trunk by this push:
     new cff204dfb78 MINOR: Cleanup build.gradle unused import and update the 
deprecated `archivePath` (#18537)
cff204dfb78 is described below

commit cff204dfb7824b3ddee5546244c9b5eedebca2eb
Author: Ken Huang <[email protected]>
AuthorDate: Tue Apr 29 21:15:55 2025 +0800

    MINOR: Cleanup build.gradle unused import and update the deprecated 
`archivePath` (#18537)
    
    [Gradle
    
    
document](https://docs.gradle.org/current/kotlin-dsl/gradle/org.gradle.api.tasks.bundling/-abstract-archive-task/get-archive-path.html)
    this `archivePath` api is deprecate, thus we should not use it
    
    Reviewers: Apoorv Mittal <[email protected]>
---
 build.gradle | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/build.gradle b/build.gradle
index 57e73bc13cc..2448bd3eaa2 100644
--- a/build.gradle
+++ b/build.gradle
@@ -14,8 +14,6 @@
 // limitations under the License.
 
 import org.ajoberstar.grgit.Grgit
-import org.gradle.api.JavaVersion
-
 import java.nio.charset.StandardCharsets
 
 buildscript {
@@ -3338,7 +3336,7 @@ project(':jmh-benchmarks') {
       if (System.getProperty("jmhArgs")) {
           args System.getProperty("jmhArgs").split(' ')
       }
-      args = [shadowJar.archivePath, *args]
+      args = [shadowJar.archiveFile.get().asFile, *args]
     }
   }
 

Reply via email to