From 9b9116db161c57f7076e7de3a4f74f6eabaa253d Mon Sep 17 00:00:00 2001 From: Khushboo Rajput Date: Mon, 23 Nov 2020 23:32:30 -0800 Subject: [PATCH] Upgrading commons-beanutils to 1.9.4 --- build.gradle | 16 +++ checkstyle/checkstyle.xml | 263 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 279 insertions(+) create mode 100644 checkstyle/checkstyle.xml diff --git a/build.gradle b/build.gradle index eeb7cd7d..ad96e88a 100644 --- a/build.gradle +++ b/build.gradle @@ -34,6 +34,7 @@ plugins { id 'java' id 'nebula.ospackage' version "8.3.0" id 'com.github.spotbugs' version '4.0.0' + id 'checkstyle' id 'jacoco' } @@ -174,6 +175,13 @@ jacocoTestCoverageVerification { // to run coverage verification during the build (and fail when appropriate) check.dependsOn jacocoTestCoverageVerification +checkstyle { + toolVersion = '8.24' + configFile file("checkstyle/checkstyle.xml") +} + +checkstyleMain.ignoreFailures = true +checkstyleTest.ignoreFailures = true dependencies { if (JavaVersion.current() <= JavaVersion.VERSION_1_8) { @@ -186,6 +194,12 @@ dependencies { all*.exclude group: "org.elasticsearch", module: "securemock" } + configurations.all { + resolutionStrategy { + force "com.puppycrawl.tools:checkstyle:${project.checkstyle.toolVersion}" + } + } + compile ('com.google.guava:guava:28.2-jre') { force = 'true' } @@ -228,6 +242,8 @@ dependencies { force = 'true' } testCompile group: 'com.google.code.gson', name: 'gson', version: '2.8.6' + + checkstyle "com.puppycrawl.tools:checkstyle:${project.checkstyle.toolVersion}" } dependencyLicenses { diff --git a/checkstyle/checkstyle.xml b/checkstyle/checkstyle.xml new file mode 100644 index 00000000..81083381 --- /dev/null +++ b/checkstyle/checkstyle.xml @@ -0,0 +1,263 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +