Skip to content

Commit

Permalink
Add LICENSE file to released jars
Browse files Browse the repository at this point in the history
Fixes #39865
  • Loading branch information
gsmet committed Apr 3, 2024
1 parent 07c9712 commit b6f9589
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
File renamed without changes.
26 changes: 26 additions & 0 deletions independent-projects/parent/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,7 @@
<Implementation-URL>${project.url}</Implementation-URL>
<Scm-Url>${project.scm.url}</Scm-Url>
<Scm-Connection>${project.scm.connection}</Scm-Connection>
<Bundle-License>Apache License 2.0</Bundle-License>
</manifestEntries>
</archive>
</configuration>
Expand Down Expand Up @@ -450,6 +451,31 @@
<id>release</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<executions>
<execution>
<id>copy-license</id>
<phase>generate-resources</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>${project.build.directory}/classes/META-INF</outputDirectory>
<resources>
<resource>
<directory>${maven.multiModuleProjectDirectory}</directory>
<filtering>false</filtering>
<includes>
<include>LICENSE</include>
</includes>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<!--
## IMPORTANT ##
Expand Down

0 comments on commit b6f9589

Please sign in to comment.