From 7399618c458ee02ab50939a8fd2dc18cd2d8b77f Mon Sep 17 00:00:00 2001 From: Jeff Yemin Date: Thu, 11 Nov 2021 12:01:14 -0500 Subject: [PATCH] Revert "Build: Updated configs" This reverts commit cc061eef07bc54c5bd4b64b0be424c870b76d87a. --- build.gradle | 12 +++--- ...uppressions.xml => checkstyle-exclude.xml} | 10 +---- config/{checkstyle => }/checkstyle.xml | 38 ++++++++++--------- .../exclude.xml => findbugs-exclude.xml} | 20 ---------- config/{scala => }/scalafmt.conf | 0 5 files changed, 29 insertions(+), 51 deletions(-) rename config/{checkstyle/suppressions.xml => checkstyle-exclude.xml} (95%) rename config/{checkstyle => }/checkstyle.xml (91%) rename config/{spotbugs/exclude.xml => findbugs-exclude.xml} (91%) rename config/{scala => }/scalafmt.conf (100%) diff --git a/build.gradle b/build.gradle index 19f7ab544c..d4bb39c8fb 100644 --- a/build.gradle +++ b/build.gradle @@ -25,7 +25,7 @@ buildscript { } dependencies { classpath 'com.netflix.nebula:gradle-extra-configurations-plugin:3.0.3' - classpath "com.github.spotbugs.snom:spotbugs-gradle-plugin:4.7.9" + classpath "gradle.plugin.com.github.spotbugs.snom:spotbugs-gradle-plugin:4.5.0" classpath 'biz.aQute.bnd:biz.aQute.bnd.gradle:5.1.2' // Scala plugins @@ -151,7 +151,7 @@ configure(scalaProjects) { spotless { scala { - scalafmt('2.0.0').configFile("$configDir/scala/scalafmt.conf") + scalafmt('2.0.0').configFile("$configDir/scalafmt.conf") } } compileScala.dependsOn('spotlessApply') @@ -253,7 +253,7 @@ configure(javaCodeCheckedProjects) { testImplementation('org.junit.jupiter:junit-jupiter-params') testImplementation('org.junit.vintage:junit-vintage-engine') - testImplementation platform('org.spockframework:spock-bom:2.0-groovy-3.0') + testImplementation platform('org.spockframework:spock-bom:2.0-groovy-2.5') testImplementation 'org.spockframework:spock-core' testImplementation 'org.spockframework:spock-junit4' testImplementation("org.mockito:mockito-core:3.8.0") @@ -328,11 +328,13 @@ configure(javaCodeCheckedProjects) { } checkstyle { - toolVersion = "9.1" + toolVersion = "7.4" + configFile = new File(configDir, 'checkstyle.xml') + configProperties.checkstyleConfigDir = configDir } spotbugs { - excludeFilter = new File(configDir, 'spotbugs/exclude.xml') + excludeFilter = new File(configDir, 'findbugs-exclude.xml') } codenarc { diff --git a/config/checkstyle/suppressions.xml b/config/checkstyle-exclude.xml similarity index 95% rename from config/checkstyle/suppressions.xml rename to config/checkstyle-exclude.xml index 5b2ea66504..334ba38cfe 100644 --- a/config/checkstyle/suppressions.xml +++ b/config/checkstyle-exclude.xml @@ -19,12 +19,10 @@ + - - - - + @@ -62,10 +60,6 @@ - - - - diff --git a/config/checkstyle/checkstyle.xml b/config/checkstyle.xml similarity index 91% rename from config/checkstyle/checkstyle.xml rename to config/checkstyle.xml index 158ccbbbb9..b0328f639f 100644 --- a/config/checkstyle/checkstyle.xml +++ b/config/checkstyle.xml @@ -78,13 +78,6 @@ - - - - - - - @@ -92,13 +85,14 @@ - + - + + @@ -120,6 +114,14 @@ + + + + + + + + @@ -197,6 +199,8 @@ + + @@ -217,18 +221,16 @@ - - - - - - - - + + + + + + - + diff --git a/config/spotbugs/exclude.xml b/config/findbugs-exclude.xml similarity index 91% rename from config/spotbugs/exclude.xml rename to config/findbugs-exclude.xml index fa442f752f..3c0b792e29 100644 --- a/config/spotbugs/exclude.xml +++ b/config/findbugs-exclude.xml @@ -23,26 +23,6 @@ - - - - - - - - - - - - - - - - - - - - diff --git a/config/scala/scalafmt.conf b/config/scalafmt.conf similarity index 100% rename from config/scala/scalafmt.conf rename to config/scalafmt.conf