File 0006-Disable-code-quality-checks.patch of Package gradle

From 7298e1704b87799781a23c5b51adb6d6a794c4ee Mon Sep 17 00:00:00 2001
From: Michael Simacek <msimacek@redhat.com>
Date: Wed, 20 Sep 2017 15:26:10 +0300
Subject: [PATCH 06/17] Disable code quality checks

---
 build.gradle                                   | 4 ----
 buildSrc/build.gradle                          | 9 ---------
 gradle/classycle.gradle                        | 7 -------
 subprojects/distributions/distributions.gradle | 2 --
 4 files changed, 22 deletions(-)

diff --git a/build.gradle b/build.gradle
index 7d8ac910b04..92233aef8c9 100644
--- a/build.gradle
+++ b/build.gradle
@@ -215,15 +215,11 @@ subprojects {
         apply from: "$rootDir/gradle/groovyProject.gradle"
         apply from: "$rootDir/gradle/testWithUnknownOS.gradle"
         apply from: "$rootDir/gradle/java9.gradle"
-        check.dependsOn ":docs:checkstyleApi"
-        check.dependsOn "codeQuality"
     }
 
     if (project in publishedProjects) {
         apply from: "$rootDir/gradle/publish.gradle"
     }
-
-    apply from: "$rootDir/gradle/codeQuality.gradle"
 }
 
 configurations {
diff --git a/buildSrc/build.gradle b/buildSrc/build.gradle
index 196acdb4b73..80ccdd03188 100644
--- a/buildSrc/build.gradle
+++ b/buildSrc/build.gradle
@@ -50,9 +50,6 @@ dependencies {
 
     compile "org.pegdown:pegdown:1.6.0"
     compile "org.jsoup:jsoup:1.6.3"
-    compile 'me.champeau.gradle:japicmp-gradle-plugin:0.2.4'
-    compile "org.asciidoctor:asciidoctor-gradle-plugin:$asciidoctorPluginVersion"
-    compile 'com.github.javaparser:javaparser-core:2.4.0'
 }
 
 ext.isCiServer = System.getenv().containsKey("CI")
@@ -60,9 +57,3 @@ ext.isCiServer = System.getenv().containsKey("CI")
 apply from: '../gradle/compile.gradle'
 apply from: '../gradle/dependencies.gradle'
 apply from: '../gradle/classycle.gradle'
-
-if (!isCiServer || (isCiServer && Boolean.getBoolean('enableCodeQuality'))) {
-    apply from: '../gradle/codeQuality.gradle'
-}
-
-apply from: "../gradle/ciReporting.gradle"
diff --git a/gradle/classycle.gradle b/gradle/classycle.gradle
index ba44bdfed3b..5396cf3c5ed 100644
--- a/gradle/classycle.gradle
+++ b/gradle/classycle.gradle
@@ -1,11 +1,4 @@
 allprojects {
     ext.useClassycle = { params = [:] ->
-        def excludePatterns = params.exclude ?: []
-
-        apply plugin: org.gradle.plugins.classycle.ClassyclePlugin
-
-        tasks.withType(org.gradle.plugins.classycle.Classycle).all() {
-            it.excludePatterns = excludePatterns
-        }
     }
 }
diff --git a/subprojects/distributions/distributions.gradle b/subprojects/distributions/distributions.gradle
index 2ff68e89277..1283e42c700 100644
--- a/subprojects/distributions/distributions.gradle
+++ b/subprojects/distributions/distributions.gradle
@@ -131,5 +131,3 @@ integTestTasks.all {
     systemProperty 'org.gradle.public.api.includes', publicApiIncludes.join(':')
     systemProperty 'org.gradle.public.api.excludes', publicApiExcludes.join(':')
 }
-
-apply from: 'binary-compatibility.gradle'
-- 
2.17.2