Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ private void process( DefaultDependencyResolutionResult result, Collection<Artif
}
}
}

class GraphLogger
implements DependencyVisitor
{
Expand Down Expand Up @@ -288,19 +288,26 @@ public boolean visitEnter( DependencyNode node )
buffer.append( ':' ).append( project.getArtifactId() );
buffer.append( ':' ).append( project.getPackaging() );
buffer.append( ':' ).append( project.getVersion() );
if( !isDescriptionEmpty( project.getDescription() ) ) {
buffer.append( " " ).append( project.getDescription() );
}
}

logger.debug( buffer.toString() );
indent += " ";
return true;
}

public boolean visitLeave( DependencyNode node )
{
indent = indent.substring( 0, indent.length() - 3 );
return true;
}

private boolean isDescriptionEmpty(String description) {
return StringUtils.isEmpty( description );
}

private void appendManagementSource( StringBuilder buffer, org.eclipse.aether.artifact.Artifact artifact,
String field )
{
Expand Down