|
4 | 4 | <format>zip</format> |
5 | 5 | </formats> |
6 | 6 |
|
7 | | - <!-- Adds the dependencies of our application to the lib directory --> |
8 | | - <dependencySets> |
9 | | - <dependencySet> |
10 | | - <useProjectArtifact>false</useProjectArtifact> |
11 | | - <outputDirectory>lib</outputDirectory> |
12 | | - <unpack>false</unpack> |
13 | | - </dependencySet> |
14 | | - </dependencySets> |
15 | | - |
16 | 7 | <fileSets> |
| 8 | + <!-- Include startup scripts --> |
17 | 9 | <fileSet> |
18 | | - <directory>${basedir}/src/assembly/distribution/</directory> |
| 10 | + <directory>${project.basedir}/src/assembly/distribution/</directory> |
19 | 11 | <outputDirectory></outputDirectory> |
20 | 12 | <includes> |
21 | 13 | <include>*</include> |
22 | 14 | </includes> |
23 | 15 | </fileSet> |
24 | | - <!-- |
25 | | - Adds the jar file of our example application to the root directory |
26 | | - of the created zip package. |
27 | | - --> |
| 16 | + |
| 17 | + <!-- Include Changelog, Readme, and License from top level project directory --> |
| 18 | + <fileSet> |
| 19 | + <directory>${project.basedir}/../</directory> |
| 20 | + <outputDirectory></outputDirectory> |
| 21 | + <includes> |
| 22 | + <include>CHANGELOG.md</include> |
| 23 | + <include>README.md</include> |
| 24 | + <include>LICENSE.txt</include> |
| 25 | + </includes> |
| 26 | + </fileSet> |
| 27 | + |
| 28 | + <!-- Put the main JAR at the top level --> |
28 | 29 | <fileSet> |
29 | 30 | <directory>${project.build.directory}</directory> |
30 | 31 | <outputDirectory></outputDirectory> |
31 | 32 | <includes> |
32 | | - <include>*.jar</include> |
| 33 | + <include>kafka-webview-ui-${project.version}.jar</include> |
| 34 | + </includes> |
| 35 | + <excludes> |
| 36 | + <exclude>kafka-webview-ui-*-sources.jar</exclude> |
| 37 | + <exclude>kafka-webview-ui-*-javadoc.jar</exclude> |
| 38 | + </excludes> |
| 39 | + </fileSet> |
| 40 | + |
| 41 | + <!-- Put doc and source JARs under src/ --> |
| 42 | + <fileSet> |
| 43 | + <directory>${project.build.directory}</directory> |
| 44 | + <outputDirectory>src/</outputDirectory> |
| 45 | + <includes> |
| 46 | + <include>kafka-webview-ui-${project.version}-sources.jar</include> |
| 47 | + <include>kafka-webview-ui-${project.version}-javadoc.jar</include> |
33 | 48 | </includes> |
34 | 49 | </fileSet> |
35 | 50 | </fileSets> |
|
0 commit comments