diff --git a/build.gradle b/build.gradle index 2b0a7fab12..a0d6370517 100644 --- a/build.gradle +++ b/build.gradle @@ -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' diff --git a/gradle/license.gradle b/gradle/license.gradle new file mode 100644 index 0000000000..e598c7d3a7 --- /dev/null +++ b/gradle/license.gradle @@ -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" + } + } + +}