New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MPLUGIN-511 add plugin requirements history detection #269
Conversation
...n-plugin-report-plugin/src/main/java/org/apache/maven/plugin/plugin/report/PluginReport.java
Outdated
Show resolved
Hide resolved
...n-report-plugin/src/main/java/org/apache/maven/plugin/plugin/report/RequirementsHistory.java
Show resolved
Hide resolved
@@ -93,6 +110,9 @@ public class PluginReport extends AbstractMavenReport { | |||
@Parameter | |||
private List<RequirementsHistory> requirementsHistories = new ArrayList<>(); | |||
|
|||
@Parameter(defaultValue = "[0,)") | |||
private String detectRequirementsHistory; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The naming includes to be boolean, but is string. Weird.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, it looked strange, but I did not precisely see why :)
renamed to requirementsHistoryDetectRange
MavenProject versionProject = buildMavenProject(v); | ||
RequirementsHistory requirements = RequirementsHistory.discoverRequirements(versionProject); | ||
requirementsHistories.add(requirements); | ||
getLog().info("- " + requirements); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be indented
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if you prefer: added 2 spaces
...n-report-plugin/src/main/java/org/apache/maven/plugin/plugin/report/RequirementsHistory.java
Show resolved
Hide resolved
...n-report-plugin/src/main/java/org/apache/maven/plugin/plugin/report/RequirementsHistory.java
Show resolved
Hide resolved
* @since 3.12.0 | ||
*/ | ||
@Parameter(defaultValue = "[0,)") | ||
private String requirementsHistoryDetectRange; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
requirementsHistoryDetectionRange
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
No description provided.