public class ProjectDependenciesMetadataJsonBuilder extends Object
| Constructor and Description |
|---|
ProjectDependenciesMetadataJsonBuilder() |
ProjectDependenciesMetadataJsonBuilder(File initialStateJsonFile) |
| Modifier and Type | Method and Description |
|---|---|
void |
evolve(Collection<GraphNode> graphNodes)
Evolves the model by adding the necessary new nodes to the internal graph map.
|
RootNodeJson |
getRootNode()
Gets the root node for this graph.
|
void |
writeToFile(File fileToWriteTo)
Creates the JSON metadata file in the destination specified in the param fileToWriteTo.
|
public ProjectDependenciesMetadataJsonBuilder()
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionpublic ProjectDependenciesMetadataJsonBuilder(File initialStateJsonFile) throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionpublic void evolve(Collection<GraphNode> graphNodes)
graphNodes - the nodes that should be part of the graph map. If any of them is already in the map, its
information will be merged with the existing values.public RootNodeJson getRootNode()
public void writeToFile(File fileToWriteTo) throws org.apache.maven.plugin.MojoExecutionException
fileToWriteTo - output file destinationorg.apache.maven.plugin.MojoExecutionExceptionCopyright © 2019 Atlassian. All rights reserved.