Skip to content

Commit

Permalink
Add LICENSE and NOTICE to release artifact
Browse files Browse the repository at this point in the history
  • Loading branch information
bchapuis committed Nov 30, 2024
1 parent 6fa41ae commit 23a791f
Showing 1 changed file with 28 additions and 19 deletions.
47 changes: 28 additions & 19 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -625,7 +625,35 @@ limitations under the License.
</dependencies>

<build>
<resources>
<resource>
<directory>${user.dir}</directory>
<targetPath>META-INF</targetPath>
<filtering>true</filtering>
<includes>
<include>LICENSE</include>
<include>NOTICE</include>
</includes>
</resource>
<resource>
<directory>${project.basedir}/src/main/resources</directory>
</resource>
</resources>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>${version.plugin.maven-jar-plugin}</version>
<configuration>
<archive>
<manifestEntries>
<Build-Date>${project.build.outputTimestamp}</Build-Date>
<Build-Version>${project.version}</Build-Version>
<Build-Jdk>${java.version}</Build-Jdk>
</manifestEntries>
</archive>
</configuration>
</plugin>
<plugin>
<groupId>com.diffplug.spotless</groupId>
<artifactId>spotless-maven-plugin</artifactId>
Expand Down Expand Up @@ -691,25 +719,6 @@ limitations under the License.
<artifactId>maven-failsafe-plugin</artifactId>
<version>${version.plugin.maven-surefire-plugin}</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>${version.plugin.maven-jar-plugin}</version>
<configuration>
<archive>
<manifestEntries>
<Build-Date>${project.build.outputTimestamp}</Build-Date>
</manifestEntries>
</archive>
</configuration>
<executions>
<execution>
<goals>
<goal>test-jar</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
Expand Down

0 comments on commit 23a791f

Please sign in to comment.