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>
|
||||
|
||||
<build>
|
||||
<resources>
|
||||
<resource>
|
||||
<directory>${project.basedir}</directory>
|
||||
<includes>
|
||||
<include>LICENSE.md</include>
|
||||
</includes>
|
||||
<targetPath>META-INF</targetPath>
|
||||
</resource>
|
||||
</resources>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.codehaus.mojo</groupId>
|
||||
|
@ -319,8 +328,17 @@
|
|||
</repository>
|
||||
</distributionManagement>
|
||||
<build>
|
||||
<plugins>
|
||||
<resources>
|
||||
<resource>
|
||||
<directory>${project.basedir}</directory>
|
||||
<includes>
|
||||
<include>LICENSE.md</include>
|
||||
</includes>
|
||||
<targetPath>META-INF</targetPath>
|
||||
</resource>
|
||||
</resources>
|
||||
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.codehaus.mojo</groupId>
|
||||
<artifactId>build-helper-maven-plugin</artifactId>
|
||||
|
@ -448,8 +466,17 @@
|
|||
</repository>
|
||||
</distributionManagement>
|
||||
<build>
|
||||
<plugins>
|
||||
<resources>
|
||||
<resource>
|
||||
<directory>${project.basedir}</directory>
|
||||
<includes>
|
||||
<include>LICENSE.md</include>
|
||||
</includes>
|
||||
<targetPath>META-INF</targetPath>
|
||||
</resource>
|
||||
</resources>
|
||||
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.codehaus.mojo</groupId>
|
||||
<artifactId>build-helper-maven-plugin</artifactId>
|
||||
|
@ -942,9 +969,9 @@
|
|||
def fileContents = new File("${project.basedir}/CHANGELOG.md").getText('UTF-8')
|
||||
matcher = (fileContents =~ /(?s).\[v$project.version\].*?/)
|
||||
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>
|
||||
</configuration>
|
||||
</execution>
|
||||
|
|
Loading…
Reference in New Issue