FINERACT-823 Gradle modernizer fixing violations

This commit is contained in:
percyashu
2020-03-23 00:54:00 +01:00
committed by Michael Vorburger ⛑️
parent ef5bba4d52
commit 2e620b4de8
50 changed files with 179 additions and 155 deletions
+25 -2
View File
@@ -44,9 +44,10 @@ buildscript {
classpath 'com.radcortez.gradle:openjpa-gradle-plugin:3.1.0'
classpath 'gradle.plugin.org.nosphere.apache:creadur-rat-gradle:0.2.2'
classpath "com.github.spotbugs:spotbugs-gradle-plugin:2.0.1"
// Use Guava version 23+ as a workaround to spotbug intergration.
// See: https://github.com/spotbugs/spotbugs-gradle-plugin/issues/128#issuecomment-535864882
// Use Guava version 23+ as a workaround to spotbug intergration.
// See: https://github.com/spotbugs/spotbugs-gradle-plugin/issues/128#issuecomment-535864882
classpath 'com.google.guava:guava:28.1-jre'
classpath "gradle.plugin.com.github.andygoossens:gradle-modernizer-plugin:1.3.0"
}
}
@@ -64,6 +65,7 @@ apply plugin: 'java-library'
apply plugin: 'openjpa'
apply plugin: "com.github.spotbugs"
apply plugin: 'checkstyle'
apply plugin: 'com.github.andygoossens.gradle-modernizer-plugin'
// apply plugin: 'pmd'
dependencyManagement {
@@ -299,6 +301,27 @@ if (project.hasProperty('security') && project.getProperty('security') == 'oauth
}
}
modernizer {
includeTestClasses = true
failOnViolations = true
violationLogLevel="error"
javaVersion = project.targetCompatibility
ignorePackages = []
ignoreClassNamePatterns = [
'.*AbstractPersistableCustom'
]
ignoreGeneratedClasses = true
exclusions = []
exclusionPatterns = [
// To be removed when https://issues.apache.org/jira/browse/FINERACT-826 is fixed
'org/joda/time/.*'
]
}
task dist(type:Zip){
baseName = 'fineractplatform'
version = qualifyVersionIfNecessary(releaseVersion)