Integrating Apache RAT FINERACT-245
This commit is contained in:
Binary file not shown.
@@ -24,6 +24,7 @@ buildscript {
|
|||||||
repositories {
|
repositories {
|
||||||
jcenter()
|
jcenter()
|
||||||
mavenCentral()
|
mavenCentral()
|
||||||
|
maven { url "https://plugins.gradle.org/m2/" }
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
@@ -33,9 +34,11 @@ buildscript {
|
|||||||
'org.springframework.boot:spring-boot-gradle-plugin:1.1.6.RELEASE' // also change springDataJpaVersion below
|
'org.springframework.boot:spring-boot-gradle-plugin:1.1.6.RELEASE' // also change springDataJpaVersion below
|
||||||
classpath 'org.apache.openjpa:openjpa-all:2.4.1'
|
classpath 'org.apache.openjpa:openjpa-all:2.4.1'
|
||||||
classpath 'at.schmutterer.oss.gradle:gradle-openjpa:0.2.0'
|
classpath 'at.schmutterer.oss.gradle:gradle-openjpa:0.2.0'
|
||||||
|
classpath 'gradle.plugin.org.nosphere.apache:creadur-rat-gradle:0.2.2'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
apply plugin: "org.nosphere.apache.rat"
|
||||||
apply plugin: 'rebel'
|
apply plugin: 'rebel'
|
||||||
apply plugin: 'license'
|
apply plugin: 'license'
|
||||||
apply plugin: 'war'
|
apply plugin: 'war'
|
||||||
@@ -77,6 +80,76 @@ openjpa {
|
|||||||
enforcePropertyRestrictions = true
|
enforcePropertyRestrictions = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
rat {
|
||||||
|
xmlOutput = false
|
||||||
|
htmlOutput = false
|
||||||
|
plainOutput = true
|
||||||
|
verbose = true
|
||||||
|
inputDir = './..'
|
||||||
|
excludes = [
|
||||||
|
'**/licenses/**',
|
||||||
|
'**/*.md',
|
||||||
|
'**/*.txt',
|
||||||
|
'**/*.log',
|
||||||
|
'**/fineractdev-eclipse-preferences.epf',
|
||||||
|
'**/template-expected.html',
|
||||||
|
'**/template.mustache',
|
||||||
|
'**/.classpath',
|
||||||
|
'**/.project',
|
||||||
|
'.idea/**',
|
||||||
|
'**/.settings/**',
|
||||||
|
'**/bin/**',
|
||||||
|
'.git/**',
|
||||||
|
'**/.gitignore',
|
||||||
|
'**/.gitkeep',
|
||||||
|
|
||||||
|
// gradle
|
||||||
|
'**/.gradle/**',
|
||||||
|
'**/gradlew',
|
||||||
|
'**/gradlew.bat',
|
||||||
|
'**/gradle/wrapper/gradle-wrapper.properties',
|
||||||
|
'**/caches/**',
|
||||||
|
'**/daemon/**',
|
||||||
|
'**/native/**',
|
||||||
|
'**/wrapper/**',
|
||||||
|
'**/build/**',
|
||||||
|
|
||||||
|
//Api Docs
|
||||||
|
'**/api-docs/*.*',
|
||||||
|
'**/docs/system-architecture/.htaccess',
|
||||||
|
'**/docs/system-architecture/404.html',
|
||||||
|
'**/docs/system-architecture/index.html',
|
||||||
|
'**/docs/system-architecture/**/*.xml',
|
||||||
|
'**/bootstrap-3.0.0/assets/application.js',
|
||||||
|
'**/system-architecture/js/plugins.js',
|
||||||
|
|
||||||
|
//Apache License
|
||||||
|
'**/bootstrap-3.0.0/assets/less.js',
|
||||||
|
'**/css/bootstrap-3.0.0/**/*.*',
|
||||||
|
|
||||||
|
//Public Domain See http://www.JSON.org/js.html
|
||||||
|
'**/bootstrap-3.0.0/assets/json2.js.htm',
|
||||||
|
|
||||||
|
// MIT License
|
||||||
|
'**/modernizr-2.6.2.min.js',
|
||||||
|
'**/css/normalize.css',
|
||||||
|
'**/assets/filesaver.js',
|
||||||
|
'**/css/fonts/glyphicons-halflings-regular.svg',
|
||||||
|
'**/assets/jszip.js',
|
||||||
|
'**/assets/jquery.js',
|
||||||
|
'**/api-docs/jquery-1.7.min.js',
|
||||||
|
'**/css/toc-0.1.2/**/*.*',
|
||||||
|
'**/docs/system-architecture/css/main.css',
|
||||||
|
'**/system-architecture/js/vendor/jquery-1.9.1.min.js',
|
||||||
|
'**/system-architecture/js/vendor/toc-0.1.2/jquery.toc.min.js',
|
||||||
|
'**/assets/respond.min.js',
|
||||||
|
'**/assets/html5shiv.js',
|
||||||
|
|
||||||
|
//BSD License
|
||||||
|
'**/assets/uglify.js'
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
||||||
configurations {
|
configurations {
|
||||||
providedRuntime // needed for Spring Boot executable WAR
|
providedRuntime // needed for Spring Boot executable WAR
|
||||||
providedCompile
|
providedCompile
|
||||||
@@ -145,6 +218,10 @@ task dist(type:Zip){
|
|||||||
into(baseName + '-' + version)
|
into(baseName + '-' + version)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
compileJava{
|
||||||
|
dependsOn rat
|
||||||
|
}
|
||||||
|
|
||||||
war {
|
war {
|
||||||
war.finalizedBy(bootRepackage)
|
war.finalizedBy(bootRepackage)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,24 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!--
|
||||||
|
|
||||||
|
Licensed to the Apache Software Foundation (ASF) under one
|
||||||
|
or more contributor license agreements. See the NOTICE file
|
||||||
|
distributed with this work for additional information
|
||||||
|
regarding copyright ownership. The ASF licenses this file
|
||||||
|
to you under the Apache License, Version 2.0 (the
|
||||||
|
"License"); you may not use this file except in compliance
|
||||||
|
with the License. You may obtain a copy of the License at
|
||||||
|
|
||||||
|
http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
|
||||||
|
Unless required by applicable law or agreed to in writing,
|
||||||
|
software distributed under the License is distributed on an
|
||||||
|
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||||
|
KIND, either express or implied. See the License for the
|
||||||
|
specific language governing permissions and limitations
|
||||||
|
under the License.
|
||||||
|
|
||||||
|
-->
|
||||||
<web-app xmlns="http://java.sun.com/xml/ns/javaee"
|
<web-app xmlns="http://java.sun.com/xml/ns/javaee"
|
||||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
|
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
|
||||||
|
|||||||
Reference in New Issue
Block a user