[MDEP-799] tree: add optional output type json by MartinWitt · Pull Request #325 · apache/maven-dependency-plugin (original) (raw)
Following this checklist to help us incorporate your
contribution quickly and easily:
- Make sure there is a JIRA issue filed
for the change (usually before you start working on it). Trivial changes like typos do not
require a JIRA issue. Your pull request should address just this issue, without
pulling in other changes. - Each commit in the pull request should have a meaningful subject line and body.
I will squash and update the commit in the end. There is still open discussion.
- Format the pull request title like
[MDEP-XXX] - Fixes bug in ApproximateQuantiles,
where you replaceMDEP-XXXwith the appropriate JIRA issue. Best practice
is to use the JIRA issue title in the pull request title and in the first line of the
commit message. - Write a pull request description that is detailed enough to understand what the pull request does, how, and why.
- Run
mvn clean verifyto make sure basic checks pass. A more thorough check will
be performed on your pull request automatically. - You have run the integration tests successfully (
mvn -Prun-its clean verify). - I hereby declare this contribution to be licensed under the Apache License Version 2.0, January 2004
- In any other case, please file an Apache Individual Contributor License Agreement.
I sent the mail for this a few minutes ago so it should be signed soon.
I tried to understand the way you write unit/integration tests but it looks a bit complicated. What is the correct way to add a testcase? Best case, I can add a pom and check if the model written as json -> read by any JSON parser is equal to the model before.
The JSON files currently exist for you to see the current printed format. It will be deleted afterward.
This PR adds JSON output type to the maven-depdenceny-plugin with the goal tree.
Supersedes #207