Skip to content

Commit

Permalink
Merge pull request #39869 from gsmet/add-license
Browse files Browse the repository at this point in the history
Add LICENSE file to released jars
  • Loading branch information
gsmet authored Apr 4, 2024
2 parents 23c986c + b6f9589 commit cc07077
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 cc07077

Please sign in to comment.