Skip to content

Commit 27f7e76

Browse files
committed
[build] Include LICENSE file in published shadow jar archives
Signed-off-by: Dariusz Jędrzejczyk <[email protected]>
1 parent 1e8440e commit 27f7e76

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

reactor-tools/build.gradle

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,11 @@ shadowJar {
126126
inheritFrom project.tasks.jar.manifest
127127
}
128128

129+
from("${rootDir}/docs/src/docs/dist") {
130+
include "LICENSE"
131+
into "META-INF"
132+
}
133+
129134
configurations = [project.configurations.shaded]
130135

131136
project.afterEvaluate {

reactor-tools/src/jarFileTest/java/reactor/tools/JarFileShadingTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ public void testPackages() throws Exception {
4545
@Test
4646
public void testMetaInf() throws Exception {
4747
assertThatFileList(root.resolve("META-INF")).containsOnly(
48-
"MANIFEST.MF"
48+
"MANIFEST.MF",
49+
"LICENSE"
4950
);
5051
}
5152

0 commit comments

Comments
 (0)