|
1 | 1 | <?xml version="1.0" encoding="UTF-8"?> |
2 | | -<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"> |
| 2 | +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 3 | + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
3 | 4 | <modelVersion>4.0.0</modelVersion> |
4 | 5 | <parent> |
5 | 6 | <groupId>org.springframework.boot</groupId> |
|
258 | 259 | <taskdef resource="net/sf/antcontrib/antcontrib.properties" /> |
259 | 260 | <taskdef name="stringutil" classname="ise.antelope.tasks.StringUtilTask" /> |
260 | 261 | <var name="version-type" value="${project.version}" /> |
261 | | - <propertyregex property="version-type" override="true" input="${version-type}" regexp=".*\.(.*)" replace="\1" /> |
262 | | - <propertyregex property="version-type" override="true" input="${version-type}" regexp="(M)\d+" replace="MILESTONE" /> |
263 | | - <propertyregex property="version-type" override="true" input="${version-type}" regexp="(RC)\d+" replace="MILESTONE" /> |
264 | | - <propertyregex property="version-type" override="true" input="${version-type}" regexp="BUILD-(.*)" replace="SNAPSHOT" /> |
| 262 | + <propertyregex property="version-type" override="true" |
| 263 | + input="${version-type}" regexp=".*\.(.*)" replace="\1" /> |
| 264 | + <propertyregex property="version-type" override="true" |
| 265 | + input="${version-type}" regexp="(M)\d+" replace="MILESTONE" /> |
| 266 | + <propertyregex property="version-type" override="true" |
| 267 | + input="${version-type}" regexp="(RC)\d+" replace="MILESTONE" /> |
| 268 | + <propertyregex property="version-type" override="true" |
| 269 | + input="${version-type}" regexp="BUILD-(.*)" replace="SNAPSHOT" /> |
265 | 270 | <stringutil string="${version-type}" property="repo"> |
266 | 271 | <lowercase /> |
267 | 272 | </stringutil> |
268 | | - <checksum algorithm="sha-1" file="${project.build.directory}/spring-boot-cli-${project.version}-bin.tar.gz" property="checksum" /> |
269 | | - <echo message="Customizing homebrew for ${project.version} with checksum ${checksum} in ${repo} repo" /> |
270 | | - <copy file="${basedir}/src/main/homebrew/springboot.rb" tofile="${project.build.directory}/springboot.rb" overwrite="true"> |
| 273 | + <checksum algorithm="sha-1" |
| 274 | + file="${project.build.directory}/spring-boot-cli-${project.version}-bin.tar.gz" |
| 275 | + property="checksum" /> |
| 276 | + <echo |
| 277 | + message="Customizing homebrew for ${project.version} with checksum ${checksum} in ${repo} repo" /> |
| 278 | + <copy file="${basedir}/src/main/homebrew/springboot.rb" |
| 279 | + tofile="${project.build.directory}/springboot.rb" overwrite="true"> |
271 | 280 | <filterchain> |
272 | 281 | <expandproperties /> |
273 | 282 | </filterchain> |
274 | 283 | </copy> |
275 | | - <attachartifact file="${project.build.directory}/springboot.rb" classifier="homebrew" type="rb" /> |
| 284 | + <attachartifact file="${project.build.directory}/springboot.rb" |
| 285 | + classifier="homebrew" type="rb" /> |
276 | 286 | </target> |
277 | 287 | </configuration> |
278 | 288 | </execution> |
|
0 commit comments