Polish POM formatting
This commit is contained in:
21
pom.xml
21
pom.xml
@@ -1,5 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-build</artifactId>
|
||||
@@ -95,15 +96,20 @@
|
||||
<taskdef resource="net/sf/antcontrib/antcontrib.properties" />
|
||||
<taskdef name="stringutil" classname="ise.antelope.tasks.StringUtilTask" />
|
||||
<var name="version-type" value="${project.version}" />
|
||||
<propertyregex property="version-type" override="true" input="${version-type}" regexp=".*\.(.*)" replace="\1" />
|
||||
<propertyregex property="version-type" override="true" input="${version-type}" regexp="(M)\d+" replace="MILESTONE" />
|
||||
<propertyregex property="version-type" override="true" input="${version-type}" regexp="(RC)\d+" replace="MILESTONE" />
|
||||
<propertyregex property="version-type" override="true" input="${version-type}" regexp="BUILD-(.*)" replace="SNAPSHOT" />
|
||||
<propertyregex property="version-type" override="true"
|
||||
input="${version-type}" regexp=".*\.(.*)" replace="\1" />
|
||||
<propertyregex property="version-type" override="true"
|
||||
input="${version-type}" regexp="(M)\d+" replace="MILESTONE" />
|
||||
<propertyregex property="version-type" override="true"
|
||||
input="${version-type}" regexp="(RC)\d+" replace="MILESTONE" />
|
||||
<propertyregex property="version-type" override="true"
|
||||
input="${version-type}" regexp="BUILD-(.*)" replace="SNAPSHOT" />
|
||||
<stringutil string="${version-type}" property="profile">
|
||||
<lowercase />
|
||||
</stringutil>
|
||||
<echo message="Writing settings for ${profile} profile" />
|
||||
<copy file=".settings-template.xml" tofile="settings.xml" overwrite="true">
|
||||
<copy file=".settings-template.xml" tofile="settings.xml"
|
||||
overwrite="true">
|
||||
<filterset>
|
||||
<filter token="profile" value="${profile}" />
|
||||
</filterset>
|
||||
@@ -120,7 +126,8 @@
|
||||
<inherited>false</inherited>
|
||||
<configuration>
|
||||
<target>
|
||||
<property name="sourceFile" value="spring-boot-starters/spring-boot-starter-parent/pom.xml" />
|
||||
<property name="sourceFile"
|
||||
value="spring-boot-starters/spring-boot-starter-parent/pom.xml" />
|
||||
<xslt in="${sourceFile}" out="${sourceFile}.new" force="true">
|
||||
<style>
|
||||
<string><![CDATA[
|
||||
|
||||
Reference in New Issue
Block a user