mojohaus / flatten-maven-plugin

Flatten Maven Plugin
https://www.mojohaus.org/flatten-maven-plugin/
Apache License 2.0
206 stars 84 forks source link

Add skip flags #385

Closed korthout closed 11 months ago

korthout commented 12 months ago

This introduces 3 flags:

This means the user has control over what parts are skipped, and the flags are descriptive. The flatten. prefix is in line with other parameters like flatten.mode and flatten.dependency.mode.

Test cases have been added for all three flags. Of course, I also tested it locally. The resulting logs are as follows:

[INFO] --- flatten:1.5.1-SNAPSHOT:clean (flatten.clean) @ my-test-module ---
[INFO] Clean skipped.
[INFO] --- flatten:1.5.1-SNAPSHOT:flatten (flatten) @ my-test-module ---
[INFO] Flatten skipped.

Usage is either through passing parameters along with the command:

mvn <goal> -Dflatten.skip
mvn <goal> -Dflatten.clean.skip
mvn <goal> -Dflatten.flatten.skip

Or through the configuration:

<configuration>
  <skip>false</skip>
  <skipClean>false</skipClean>
  <skipFlatten>true</skipFlatten>
</<configuration>

closes #290

korthout commented 11 months ago

@slawekjaranowski PR includes tests and is ready for review. Let me know if there's anything unclear or missing.

slawekjaranowski commented 11 months ago

@korthout thanks

korthout commented 10 months ago

@slawekjaranowski I'm curious about your release policy. Would you be willing to publish a release for this?