|
328 | 328 | <echo
|
329 | 329 | message="Customizing homebrew for ${project.version} with checksum ${checksum} in ${repo} repo" />
|
330 | 330 | <copy file="${basedir}/src/main/homebrew/springboot.rb"
|
331 |
| - tofile="${project.build.directory}/springboot.rb" overwrite="true"> |
| 331 | + tofile="${project.build.directory}/homebrew/springboot.rb" overwrite="true"> |
332 | 332 | <filterchain>
|
333 | 333 | <expandproperties />
|
334 | 334 | </filterchain>
|
335 | 335 | </copy>
|
336 |
| - <attachartifact file="${project.build.directory}/springboot.rb" |
| 336 | + <attachartifact file="${project.build.directory}/homebrew/springboot.rb" |
337 | 337 | classifier="homebrew" type="rb" />
|
338 | 338 | </target>
|
339 | 339 | </configuration>
|
340 | 340 | </execution>
|
| 341 | + <execution> |
| 342 | + <id>scoop</id> |
| 343 | + <phase>package</phase> |
| 344 | + <goals> |
| 345 | + <goal>run</goal> |
| 346 | + </goals> |
| 347 | + <inherited>false</inherited> |
| 348 | + <configuration> |
| 349 | + <target> |
| 350 | + <taskdef resource="net/sf/antcontrib/antcontrib.properties" /> |
| 351 | + <taskdef name="stringutil" classname="ise.antelope.tasks.StringUtilTask" /> |
| 352 | + <var name="scoop-version" value="${project.version}" /> |
| 353 | + <propertyregex property="scoop-version" override="true" |
| 354 | + input="${scoop-version}" regexp="(.*)\..*" replace="\1" /> |
| 355 | + <var name="version-type" value="${project.version}" /> |
| 356 | + <propertyregex property="version-type" override="true" |
| 357 | + input="${version-type}" regexp=".*\.(.*)" replace="\1" /> |
| 358 | + <propertyregex property="version-type" override="true" |
| 359 | + input="${version-type}" regexp="(M)\d+" replace="MILESTONE" /> |
| 360 | + <propertyregex property="version-type" override="true" |
| 361 | + input="${version-type}" regexp="(RC)\d+" replace="MILESTONE" /> |
| 362 | + <propertyregex property="version-type" override="true" |
| 363 | + input="${version-type}" regexp="BUILD-(.*)" replace="SNAPSHOT" /> |
| 364 | + <stringutil string="${version-type}" property="repo"> |
| 365 | + <lowercase /> |
| 366 | + </stringutil> |
| 367 | + <checksum algorithm="sha-256" |
| 368 | + file="${project.build.directory}/spring-boot-cli-${project.version}-bin.zip" |
| 369 | + property="hash" /> |
| 370 | + <echo |
| 371 | + message="Customizing scoop for ${project.version} with hash ${hash} in ${repo} repo" /> |
| 372 | + <copy file="${basedir}/src/main/scoop/springboot.json" |
| 373 | + tofile="${project.build.directory}/scoop/springboot.json" overwrite="true"> |
| 374 | + <filterchain> |
| 375 | + <expandproperties> |
| 376 | + <propertyset> |
| 377 | + <propertyref name="scoop-version" /> |
| 378 | + <propertyref name="hash" /> |
| 379 | + <propertyref name="repo" /> |
| 380 | + <propertyref name="project.version" /> |
| 381 | + </propertyset> |
| 382 | + </expandproperties> |
| 383 | + </filterchain> |
| 384 | + </copy> |
| 385 | + <attachartifact file="${project.build.directory}/scoop/springboot.json" |
| 386 | + classifier="scoop" type="json" /> |
| 387 | + </target> |
| 388 | + </configuration> |
| 389 | + </execution> |
341 | 390 | </executions>
|
342 | 391 | </plugin>
|
343 | 392 | <plugin>
|
|
0 commit comments