From 23157fd9de3dd70c63fbe1ecd859f978f1d796c6 Mon Sep 17 00:00:00 2001 From: Frank Liu Date: Thu, 10 Jun 2021 16:31:03 -0700 Subject: [PATCH] Enable spotbugs for java 11+ (#1010) Change-Id: I74effbf45492a5cf50e09ba8af0223d2b1bcb5a5 --- paddlepaddle/paddlepaddle-native/build.gradle | 4 ---- tensorflow/tensorflow-native/build.gradle | 4 ---- tflite/tflite-native/build.gradle | 4 ---- 3 files changed, 12 deletions(-) diff --git a/paddlepaddle/paddlepaddle-native/build.gradle b/paddlepaddle/paddlepaddle-native/build.gradle index 66381e392da..74fb55b5511 100644 --- a/paddlepaddle/paddlepaddle-native/build.gradle +++ b/paddlepaddle/paddlepaddle-native/build.gradle @@ -285,7 +285,3 @@ publishing.repositories { } } } - -if (JavaVersion.current() == JavaVersion.VERSION_1_8) { - tasks.getByName("spotbugsMain").enabled = false -} diff --git a/tensorflow/tensorflow-native/build.gradle b/tensorflow/tensorflow-native/build.gradle index aec7fec84db..97b6450381c 100644 --- a/tensorflow/tensorflow-native/build.gradle +++ b/tensorflow/tensorflow-native/build.gradle @@ -366,7 +366,3 @@ task downloadTensorflowNativeLib() { new File("${BINARY_ROOT}/auto").mkdirs() } } - -if (JavaVersion.current() == JavaVersion.VERSION_1_8) { - tasks.getByName("spotbugsMain").enabled = false -} diff --git a/tflite/tflite-native/build.gradle b/tflite/tflite-native/build.gradle index f890b8f879e..2bd992c0a20 100644 --- a/tflite/tflite-native/build.gradle +++ b/tflite/tflite-native/build.gradle @@ -179,7 +179,3 @@ flavorNames.each { flavor -> checkstyleMain.enabled = false pmdMain.enabled = false - -if (JavaVersion.current() == JavaVersion.VERSION_1_8) { - tasks.getByName("spotbugsMain").enabled = false -}