|
71 | 71 | </resource> |
72 | 72 | </resources> |
73 | 73 | <plugins> |
| 74 | + <plugin> |
| 75 | + <groupId>org.apache.maven.plugins</groupId> |
| 76 | + <artifactId>maven-dependency-plugin</artifactId> |
| 77 | + <version>3.6.0</version> |
| 78 | + <executions> |
| 79 | + <execution> |
| 80 | + <id>unpack-licenses</id> |
| 81 | + <phase>prepare-package</phase> |
| 82 | + <goals> |
| 83 | + <goal>unpack</goal> |
| 84 | + </goals> |
| 85 | + <configuration> |
| 86 | + <artifactItems> |
| 87 | + <artifactItem> |
| 88 | + <groupId>com.formdev</groupId> |
| 89 | + <artifactId>flatlaf</artifactId> |
| 90 | + <version>3.3</version> |
| 91 | + <type>jar</type> |
| 92 | + <includes>META-INF/LICENSE</includes> |
| 93 | + <outputDirectory>${project.build.directory}/licenses/flatlaf</outputDirectory> |
| 94 | + </artifactItem> |
| 95 | + <artifactItem> |
| 96 | + <groupId>com.formdev</groupId> |
| 97 | + <artifactId>flatlaf-extras</artifactId> |
| 98 | + <version>3.3</version> |
| 99 | + <type>jar</type> |
| 100 | + <includes>META-INF/LICENSE</includes> |
| 101 | + <outputDirectory>${project.build.directory}/licenses/flatlaf-extras</outputDirectory> |
| 102 | + </artifactItem> |
| 103 | + <artifactItem> |
| 104 | + <groupId>com.github.weisj</groupId> |
| 105 | + <artifactId>jsvg</artifactId> |
| 106 | + <version>1.2.0</version> |
| 107 | + <type>jar</type> |
| 108 | + <includes>META-INF/LICENSE</includes> |
| 109 | + <outputDirectory>${project.build.directory}/licenses/jsvg</outputDirectory> |
| 110 | + </artifactItem> |
| 111 | + </artifactItems> |
| 112 | + </configuration> |
| 113 | + </execution> |
| 114 | + </executions> |
| 115 | + </plugin> |
| 116 | + <plugin> |
| 117 | + <groupId>org.apache.maven.plugins</groupId> |
| 118 | + <artifactId>maven-antrun-plugin</artifactId> |
| 119 | + <version>3.1.0</version> |
| 120 | + <executions> |
| 121 | + <execution> |
| 122 | + <id>rename-licenses</id> |
| 123 | + <phase>prepare-package</phase> |
| 124 | + <goals> |
| 125 | + <goal>run</goal> |
| 126 | + </goals> |
| 127 | + <configuration> |
| 128 | + <target> |
| 129 | + <copy file="${project.build.directory}/licenses/flatlaf/META-INF/LICENSE" tofile="${project.build.outputDirectory}/META-INF/LICENSE_flatlaf" /> |
| 130 | + <copy file="${project.build.directory}/licenses/flatlaf-extras/META-INF/LICENSE" tofile="${project.build.outputDirectory}/META-INF/LICENSE_flatlaf-extras" /> |
| 131 | + <copy file="${project.build.directory}/licenses/jsvg/META-INF/LICENSE" tofile="${project.build.outputDirectory}/META-INF/LICENSE_jsvg" /> |
| 132 | + </target> |
| 133 | + </configuration> |
| 134 | + </execution> |
| 135 | + </executions> |
| 136 | + </plugin> |
74 | 137 | <plugin> |
75 | 138 | <groupId>org.apache.maven.plugins</groupId> |
76 | 139 | <artifactId>maven-compiler-plugin</artifactId> |
|
130 | 193 | <filter> |
131 | 194 | <artifact>*:*</artifact> |
132 | 195 | <excludes> |
| 196 | + <exclude>module-info.class</exclude> |
133 | 197 | <exclude>META-INF/MANIFEST.MF</exclude> |
134 | 198 | <exclude>META-INF/*.SF</exclude> |
135 | 199 | <exclude>META-INF/*.DSA</exclude> |
136 | 200 | <exclude>META-INF/*.RSA</exclude> |
| 201 | + <exclude>META-INF/LICENSE</exclude> |
137 | 202 | </excludes> |
138 | 203 | </filter> |
139 | 204 | </filters> |
|
0 commit comments