Add LICENSE.md to META-INF folder when running with staging or release profile.
This commit is contained in:
parent
4b88c3e8a2
commit
1959cdf6d8
35
pom.xml
35
pom.xml
|
@ -157,6 +157,15 @@
|
||||||
</distributionManagement>
|
</distributionManagement>
|
||||||
|
|
||||||
<build>
|
<build>
|
||||||
|
<resources>
|
||||||
|
<resource>
|
||||||
|
<directory>${project.basedir}</directory>
|
||||||
|
<includes>
|
||||||
|
<include>LICENSE.md</include>
|
||||||
|
</includes>
|
||||||
|
<targetPath>META-INF</targetPath>
|
||||||
|
</resource>
|
||||||
|
</resources>
|
||||||
<plugins>
|
<plugins>
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.codehaus.mojo</groupId>
|
<groupId>org.codehaus.mojo</groupId>
|
||||||
|
@ -319,8 +328,17 @@
|
||||||
</repository>
|
</repository>
|
||||||
</distributionManagement>
|
</distributionManagement>
|
||||||
<build>
|
<build>
|
||||||
<plugins>
|
<resources>
|
||||||
|
<resource>
|
||||||
|
<directory>${project.basedir}</directory>
|
||||||
|
<includes>
|
||||||
|
<include>LICENSE.md</include>
|
||||||
|
</includes>
|
||||||
|
<targetPath>META-INF</targetPath>
|
||||||
|
</resource>
|
||||||
|
</resources>
|
||||||
|
|
||||||
|
<plugins>
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.codehaus.mojo</groupId>
|
<groupId>org.codehaus.mojo</groupId>
|
||||||
<artifactId>build-helper-maven-plugin</artifactId>
|
<artifactId>build-helper-maven-plugin</artifactId>
|
||||||
|
@ -448,8 +466,17 @@
|
||||||
</repository>
|
</repository>
|
||||||
</distributionManagement>
|
</distributionManagement>
|
||||||
<build>
|
<build>
|
||||||
<plugins>
|
<resources>
|
||||||
|
<resource>
|
||||||
|
<directory>${project.basedir}</directory>
|
||||||
|
<includes>
|
||||||
|
<include>LICENSE.md</include>
|
||||||
|
</includes>
|
||||||
|
<targetPath>META-INF</targetPath>
|
||||||
|
</resource>
|
||||||
|
</resources>
|
||||||
|
|
||||||
|
<plugins>
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.codehaus.mojo</groupId>
|
<groupId>org.codehaus.mojo</groupId>
|
||||||
<artifactId>build-helper-maven-plugin</artifactId>
|
<artifactId>build-helper-maven-plugin</artifactId>
|
||||||
|
@ -942,9 +969,9 @@
|
||||||
def fileContents = new File("${project.basedir}/CHANGELOG.md").getText('UTF-8')
|
def fileContents = new File("${project.basedir}/CHANGELOG.md").getText('UTF-8')
|
||||||
matcher = (fileContents =~ /(?s).\[v$project.version\].*?/)
|
matcher = (fileContents =~ /(?s).\[v$project.version\].*?/)
|
||||||
if (!matcher.find()) {
|
if (!matcher.find()) {
|
||||||
throw new IllegalArgumentException("Tag [v$project.version] not found in CHANGELOG.md")
|
throw new IllegalArgumentException("Tag [v$project.version] not found in ${project.basedir}/CHANGELOG.md")
|
||||||
}
|
}
|
||||||
assert matcher[0][1]: "Tag [v$project.version] not found in CHANGELOG.md"
|
assert matcher[0][1]: "Tag [v$project.version] not found in ${project.basedir}/CHANGELOG.md"
|
||||||
</source>
|
</source>
|
||||||
</configuration>
|
</configuration>
|
||||||
</execution>
|
</execution>
|
||||||
|
|
Loading…
Reference in New Issue