From 8c5cf0667f3b978b2d19080318d7cfcf57a18290 Mon Sep 17 00:00:00 2001 From: Nazeer Hussain Shaik Date: Thu, 23 Feb 2017 15:09:25 +0530 Subject: [PATCH] FINERACT-402-Integrate PMD and Findbugs with Fineract --- fineract-provider/build.gradle | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/fineract-provider/build.gradle b/fineract-provider/build.gradle index 1aa760b91..331a41723 100644 --- a/fineract-provider/build.gradle +++ b/fineract-provider/build.gradle @@ -49,6 +49,8 @@ apply plugin: 'tomcat' apply plugin: 'project-report' apply plugin: 'java' apply plugin: 'openjpa' +apply plugin: 'pmd' +apply plugin: 'findbugs' /* define the valid syntax level for source files */ sourceCompatibility = JavaVersion.VERSION_1_8 @@ -243,6 +245,14 @@ task dist(type:Zip){ compileJava{ dependsOn rat } +pmd { + sourceSets = [sourceSets.main] + ignoreFailures = true +} +findbugs { + ignoreFailures = true + sourceSets = [sourceSets.main] +} war { from('../licenses/binary/') { // notice the parens