Skip to content

Commit

Permalink
add license to jar files (#352)
Browse files Browse the repository at this point in the history
Signed-off-by: Jack (T.) Jia <[email protected]>
  • Loading branch information
jackjia-ibm authored and vsev0lod committed Sep 17, 2019
1 parent 3e9a7df commit 92b9fe3
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
1 change: 1 addition & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ buildscript {
}

apply plugin: 'com.palantir.jacoco-full-report'
apply from: 'gradle/license.gradle'
apply from: 'gradle/publish.gradle'
apply from: 'gradle/sonar.gradle'
apply from: 'gradle/coverage.gradle'
Expand Down
31 changes: 31 additions & 0 deletions gradle/license.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
ext.projectsNeedLicense = [
'api-catalog-services',
'api-catalog-ui',
'apiml-common',
'apiml-security-common',
'common-service-core',
'discoverable-client',
'discovery-service',
'gateway-common',
'gateway-service',
'integration-enabler-java',
'integration-enabler-spring-v1',
'integration-enabler-spring-v2',
'integration-tests',
'security-module',
'security-service-client-spring',
'zowe-install'
]

configure(subprojects.findAll { it.name in projectsNeedLicense }) {
tasks.withType(Jar) {
metaInf {
from rootProject.file("LICENSE")
}

manifest {
attributes "Bundle-License": "https://www.eclipse.org/legal/epl-v20.html"
}
}

}

0 comments on commit 92b9fe3

Please sign in to comment.