diff --git a/build.gradle b/build.gradle
index 4b09cd3fa576ec7a942091539a1175956596d26a..5e30a2fb60f35e41bf8848389bc61eee625d55bf 100644
--- a/build.gradle
+++ b/build.gradle
@@ -123,6 +123,14 @@ cargo {
     }
 }
 
+if (JavaVersion.current().isJava8Compatible()) {
+    allprojects {
+        tasks.withType(Javadoc) {
+            options.addStringOption('Xdoclint:none', '-quiet')
+        }
+    }
+}
+
 task sourceJar(type: Jar, dependsOn: classes) {
     from sourceSets.main.allSource
 }
@@ -170,7 +178,6 @@ publishing {
         }
     }
     repositories {
-        mavenLocal()
         maven {
             credentials {
                 // These properties must be set in the ~/.gradle/gradle.properties file or passed on the Gradle command