Skip to content

Commit

Permalink
Add changelog to artifacts if it exists (#6746)
Browse files Browse the repository at this point in the history
  • Loading branch information
JimSuplizio authored Dec 12, 2019
1 parent 0937d8e commit 6298fa4
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions pom.client.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1035,6 +1035,39 @@
</build>
</profile>

<profile>
<id>changelog</id>
<activation>
<file>
<exists>${basedir}/CHANGELOG.md</exists>
</file>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.8</version> <!-- {x-version-update;org.apache.maven.plugins:maven-antrun-plugin;external_dependency} -->
<executions>
<execution>
<id>copy-changelog</id>
<phase>package</phase>
<configuration>
<target>
<echo>Copying ${project.basedir}/CHANGELOG.md to ${packageOutputDirectory}/${project.build.finalName}-changelog.md</echo>
<copy file="${project.basedir}/CHANGELOG.md" tofile="${packageOutputDirectory}/${project.build.finalName}-changelog.md"/>
</target>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>

<profile>
<!-- separate profile for windows as the executable on windows is named npx.cmd and npx on other os families -->
<id>readme-codesnippet-windows</id>
Expand Down

0 comments on commit 6298fa4

Please sign in to comment.