THRIFT-5699: java lib and build tool chain: gradle 8.0.2 (#2779)

diff --git a/lib/java/build.gradle b/lib/java/build.gradle
index c8fc27c..7459e1f 100644
--- a/lib/java/build.gradle
+++ b/lib/java/build.gradle
@@ -40,7 +40,7 @@
     id 'maven-publish'
     id 'signing'
     id 'pmd'
-    id 'com.github.johnrengelman.shadow' version '6.1.0'
+    id 'com.github.johnrengelman.shadow' version '8.1.1'
     id "com.github.spotbugs" version "4.7.1"
     id "com.diffplug.spotless" version "6.5.2"
 }