FINERACT-266 - Handling License issues for both source and binary distributions

This commit is contained in:
Nazeer Hussain Shaik
2016-12-05 16:48:36 +05:30
parent e9e3326f5b
commit 3d03595ffd
35 changed files with 1815 additions and 32 deletions
+28 -1
View File
@@ -154,7 +154,25 @@ configurations {
providedRuntime // needed for Spring Boot executable WAR
providedCompile
compile() {
exclude module: 'hibernate-entitymanager'
exclude module: 'hibernate-entitymanager'
exclude module: 'hibernate-validator'
exclude module: 'activation'
exclude module: 'bcmail-jdk14'
exclude module: 'bcprov-jdk14'
exclude module: 'bctsp-jdk14'
exclude module: 'bval-core'
exclude module: 'org.apache.bval.bundle'
exclude module: 'bval-jsr303'
exclude module: 'c3p0'
exclude module: 'stax-api'
exclude module: 'jaxb-api'
exclude module: 'jaxb-impl'
exclude module: 'jboss-logging'
exclude module: 'itext-rtf'
exclude module: 'classworlds'
exclude module: 'jcl-over-slf4j'
exclude module: 'jul-to-slf4j'
exclude module: 'serp'
}
runtime
all*.exclude group: 'commons-logging'
@@ -223,6 +241,15 @@ compileJava{
}
war {
from('../licenses') { // notice the parens
into "WEB-INF/licenses/" // no leading slash
}
from('../LICENSE') { // notice the parens
into "WEB-INF/" // no leading slash
}
from('../NOTICE') { // notice the parens
into "WEB-INF/" // no leading slash
}
war.finalizedBy(bootRepackage)
}