Skip to content

Commit ae08812

Browse files
s1ckMats-SX
andcommitted
Remove DEPENDENCIES file and add LICENSE.txt to okapi-shade jar
Co-authored-by: Mats Rydberg <[email protected]>
1 parent 5120d5c commit ae08812

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

build.gradle

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,10 @@ subprojects {
8686
}
8787
}
8888

89+
task licenseFile {
90+
outputs.file(project.parent.file('LICENSE.txt'))
91+
}
92+
8993
task dependencySearch(type: DependencyInsightReportTask) {
9094
description 'Searches all projects for a dependency'
9195
group 'help'

okapi-shade/build.gradle

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,10 @@ shadowJar {
6969
exclude "META-INF/services/**/*"
7070
exclude "META-INF/NOTICE*"
7171
exclude "META-INF/LICENSE*"
72+
exclude "META-INF/DEPENDENCIES*"
7273
exclude "utf8.json"
74+
75+
metaInf { from tasks.licenseFile }
7376
}
7477

7578
assemble.dependsOn shadowJar

0 commit comments

Comments
 (0)