File tree Expand file tree Collapse file tree 1 file changed +15
-2
lines changed
Expand file tree Collapse file tree 1 file changed +15
-2
lines changed Original file line number Diff line number Diff line change 1717 * under the License.
1818 */
1919
20+ import licenses.LicenseNoticeMerge
2021import publishing.PublishingHelperPlugin
2122import publishing.digestTaskOutputs
2223import publishing.signTaskOutputs
@@ -48,11 +49,24 @@ val serverDistribution by
4849 isCanBeResolved = true
4950 }
5051
52+ val licenseNotice by
53+ configurations.creating {
54+ isCanBeConsumed = false
55+ isCanBeResolved = true
56+ }
57+
5158dependencies {
5259 adminDistribution(project(" :polaris-admin" , " distributionElements" ))
5360 serverDistribution(project(" :polaris-server" , " distributionElements" ))
61+ licenseNotice(project(" :polaris-admin" , " licenseNoticeElements" ))
62+ licenseNotice(project(" :polaris-server" , " licenseNoticeElements" ))
5463}
5564
65+ val licenseNoticeMerge by
66+ tasks.registering(LicenseNoticeMerge ::class ) { sourceLicenseNotice = licenseNotice }
67+
68+ tasks.named(" assembleDist" ).configure { dependsOn(licenseNoticeMerge) }
69+
5670distributions {
5771 main {
5872 distributionBaseName.set(" polaris-bin" )
@@ -70,8 +84,7 @@ distributions {
7084 }
7185
7286 from(" README.md" )
73- from(" LICENSE" )
74- from(" NOTICE" )
87+ from(licenseNoticeMerge)
7588 }
7689 }
7790}
You can’t perform that action at this time.
0 commit comments