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

diff --git a/doc/install/README.md b/doc/install/README.md
index 2a9446b..b90e5c6 100644
--- a/doc/install/README.md
+++ b/doc/install/README.md
@@ -28,8 +28,8 @@
     * zlib (optional)
     * Qt (optional)
 * Java
-    * Java 17
-    * Gradle 7.6
+    * Java 17 (latest LTS)
+    * Gradle 8.0.2
 * C#: Mono 1.2.4 (and pkg-config to detect it) or Visual Studio 2005+
 * Python 2.6 (including header files for extension modules)
 * PHP 5.0 (optionally including header files for extension modules)
diff --git a/doc/install/debian.md b/doc/install/debian.md
index 281a6a8..4718017 100644
--- a/doc/install/debian.md
+++ b/doc/install/debian.md
@@ -18,7 +18,7 @@
 If you would like to build Apache Thrift libraries for other programming languages you may need to install additional packages. The following languages require the specified additional packages:
 
  * Java
-	* packages: gradle (version 7.6)
+	* packages: gradle (version 8.0.2)
 	* You will also need Java JDK v1.8 or higher. Type **javac** to see a list of available packages, pick the one you prefer and **apt-get install** it (e.g. default-jdk).
  * Ruby
 	* ruby-full ruby-dev ruby-rspec rake rubygems bundler