Fix rat reports

This commit is contained in:
xurror
2020-04-26 16:47:27 +02:00
committed by Michael Vorburger ⛑️
parent c317db110f
commit 0a80195ac2
2 changed files with 76 additions and 81 deletions
+1 -1
View File
@@ -61,5 +61,5 @@ script:
# using "&&" instead of several "-" means that integrationTest does not run if test fails, # using "&&" instead of several "-" means that integrationTest does not run if test fails,
# and Docker test does not run if integration test fails, which makes PR failure easier to understand. # and Docker test does not run if integration test fails, which makes PR failure easier to understand.
# @see https://docs.travis-ci.com/user/job-lifecycle/#customizing-the-build-phase # @see https://docs.travis-ci.com/user/job-lifecycle/#customizing-the-build-phase
- ./gradlew --console=plain licenseMain licenseTest licenseIntegrationTest check && ./gradlew --console=plain integrationTest && sudo service mysql stop && docker-compose build && docker-compose up -d && sleep 30s && http --verify=no --timeout 240 --check-status get https://localhost:8443/fineract-provider/actuator/health - ./gradlew clean && ./gradlew --console=plain licenseMain licenseTest licenseIntegrationTest check && ./gradlew --console=plain integrationTest && sudo service mysql stop && docker-compose build && docker-compose up -d && sleep 30s && http --verify=no --timeout 240 --check-status get https://localhost:8443/fineract-provider/actuator/health
# We stop the mysql system service when running the Docker test to avoid port 3306 conflicts (unless we run the mysql in docker-compose on another port; req. FINERACT-773) # We stop the mysql system service when running the Docker test to avoid port 3306 conflicts (unless we run the mysql in docker-compose on another port; req. FINERACT-773)
+75 -80
View File
@@ -43,7 +43,7 @@ buildscript {
// below // below
classpath "org.apache.openjpa:openjpa:$openJPAVersion" classpath "org.apache.openjpa:openjpa:$openJPAVersion"
classpath 'com.radcortez.gradle:openjpa-gradle-plugin:3.1.0' classpath 'com.radcortez.gradle:openjpa-gradle-plugin:3.1.0'
classpath 'gradle.plugin.org.nosphere.apache:creadur-rat-gradle:0.2.2' classpath "org.nosphere.apache:creadur-rat-gradle:0.6.0"
classpath "com.github.spotbugs:spotbugs-gradle-plugin:2.0.1" classpath "com.github.spotbugs:spotbugs-gradle-plugin:2.0.1"
// Use Guava version 23+ as a workaround to spotbug intergration. // Use Guava version 23+ as a workaround to spotbug intergration.
// See: https://github.com/spotbugs/spotbugs-gradle-plugin/issues/128#issuecomment-535864882 // See: https://github.com/spotbugs/spotbugs-gradle-plugin/issues/128#issuecomment-535864882
@@ -175,86 +175,82 @@ jacocoTestReport{
} }
rat { rat {
xmlOutput = false verbose = false
htmlOutput = false reportDir = new File(buildDir,'reports/rat')
plainOutput = true excludes = [
verbose = false '**/licenses/**',
// inputDir = './..' '**/*.md',
reportDir = new File(buildDir,'reports/rat') '**/*.github/**',
excludes = [ '**/MANIFEST.MF',
'**/licenses/**', '**/*.json',
'**/*.md', '**/*.txt',
'**/*.github/**', '**/*.log',
'**/MANIFEST.MF', '**/fineractdev-eclipse-preferences.epf',
'**/*.json', '**/template-expected.html',
'**/*.txt', '**/template.mustache',
'**/*.log', '**/.classpath',
'**/fineractdev-eclipse-preferences.epf', '**/.project',
'**/template-expected.html', '**/.idea/**',
'**/template.mustache', '**/*.ipr',
'**/.classpath', '**/*.iws',
'**/.project', '**/.settings/**',
'**/.idea/**', '**/bin/**',
'**/*.ipr', '**/.git/**',
'**/*.iws', '**/.gitignore',
'**/.settings/**', '**/.gitkeep',
'**/bin/**', '**/*.iml',
'**/.git/**', //Notice files
'**/.gitignore', '**/NOTICE_RELEASE',
'**/.gitkeep', '**/NOTICE_SOURCE',
'**/*.iml', // Swagger License
//Notice files '**/src/main/resources/swagger-ui/**',
'**/NOTICE_RELEASE', // gradle
'**/NOTICE_SOURCE', '**/.gradle/**',
// Swagger License '**/gradlew',
'**/src/main/resources/swagger-ui/**', '**/gradlew.bat',
// gradle '**/gradle/wrapper/gradle-wrapper.properties',
'**/.gradle/**', '**/caches/**',
'**/gradlew', '**/daemon/**',
'**/gradlew.bat', '**/native/**',
'**/gradle/wrapper/gradle-wrapper.properties', '**/wrapper/**',
'**/caches/**', '**/build/**',
'**/daemon/**',
'**/native/**',
'**/wrapper/**',
'**/build/**',
//Api Docs //Api Docs
'**/api-docs/*.*', '**/api-docs/*.*',
'**/docs/system-architecture/.htaccess', '**/docs/system-architecture/.htaccess',
'**/docs/system-architecture/404.html', '**/docs/system-architecture/404.html',
'**/docs/system-architecture/index.html', '**/docs/system-architecture/index.html',
'**/docs/system-architecture/**/*.xml', '**/docs/system-architecture/**/*.xml',
'**/bootstrap-3.0.0/assets/application.js', '**/bootstrap-3.0.0/assets/application.js',
'**/system-architecture/js/plugins.js', '**/system-architecture/js/plugins.js',
//Apache License //Apache License
'**/bootstrap-3.0.0/assets/less.js', '**/bootstrap-3.0.0/assets/less.js',
'**/css/bootstrap-3.0.0/**/*.*', '**/css/bootstrap-3.0.0/**/*.*',
//Public Domain See http://www.JSON.org/js.html //Public Domain See http://www.JSON.org/js.html
'**/bootstrap-3.0.0/assets/json2.js.htm', '**/bootstrap-3.0.0/assets/json2.js.htm',
// MIT License // MIT License
'**/modernizr-2.6.2.min.js', '**/modernizr-2.6.2.min.js',
'**/css/normalize.css', '**/css/normalize.css',
'**/assets/filesaver.js', '**/assets/filesaver.js',
'**/css/fonts/glyphicons-halflings-regular.svg', '**/css/fonts/glyphicons-halflings-regular.svg',
'**/assets/jszip.js', '**/assets/jszip.js',
'**/assets/jquery.js', '**/assets/jquery.js',
'**/api-docs/jquery-1.7.min.js', '**/api-docs/jquery-1.7.min.js',
'**/css/toc-0.1.2/**/*.*', '**/css/toc-0.1.2/**/*.*',
'**/docs/system-architecture/css/main.css', '**/docs/system-architecture/css/main.css',
'**/system-architecture/js/vendor/jquery-1.9.1.min.js', '**/system-architecture/js/vendor/jquery-1.9.1.min.js',
'**/system-architecture/js/vendor/toc-0.1.2/jquery.toc.min.js', '**/system-architecture/js/vendor/toc-0.1.2/jquery.toc.min.js',
'**/assets/respond.min.js', '**/assets/respond.min.js',
'**/assets/html5shiv.js', '**/assets/html5shiv.js',
//BSD License //BSD License
'**/assets/uglify.js', '**/assets/uglify.js',
//Ignore out folder //Ignore out folder
'**/out/**', '**/out/**',
] ]
} }
configurations { configurations {
@@ -327,14 +323,14 @@ modernizer {
ignorePackages = [] ignorePackages = []
ignoreClassNamePatterns = [ ignoreClassNamePatterns = [
'.*AbstractPersistableCustom' '.*AbstractPersistableCustom'
] ]
ignoreGeneratedClasses = true ignoreGeneratedClasses = true
exclusions = [] exclusions = []
exclusionPatterns = [ exclusionPatterns = [
// To be removed when https://issues.apache.org/jira/browse/FINERACT-826 is fixed // To be removed when https://issues.apache.org/jira/browse/FINERACT-826 is fixed
'org/joda/time/.*' 'org/joda/time/.*'
] ]
} }
@@ -406,7 +402,6 @@ war {
license { license {
header rootProject.file('../APACHE_LICENSETEXT.md') header rootProject.file('../APACHE_LICENSETEXT.md')
excludes([ excludes([
"**/rat-report.txt",
"**/git.properties", "**/git.properties",
"**/*.html", "**/*.html",
"**/*.mustache", "**/*.mustache",