THRIFT-5545: use gradle convention in organizing java project
Client: java
Patch: Jiayu Liu

This closes #2546
diff --git a/lib/java/build.gradle b/lib/java/build.gradle
index ad30249..6bd2ec4 100644
--- a/lib/java/build.gradle
+++ b/lib/java/build.gradle
@@ -36,7 +36,7 @@
 }
 
 plugins {
-    id 'java'
+    id 'java-library'
     id 'maven'
     id 'signing'
     id 'com.github.johnrengelman.shadow' version '4.0.4'