[MNG-6228] Optionality not displayed in dependency tree when run in debug mode

Log message in DefaultProjectDependenciesResolver has been extended with
"(optional)" if dependency is marked as optional (direct or transitive).
This commit is contained in:
Michael Osipov 2017-05-09 22:15:21 +02:00
parent 6182a2083f
commit fd988e78e9
1 changed files with 5 additions and 0 deletions

View File

@ -295,6 +295,11 @@ public class DefaultProjectDependenciesResolver
// The resolver 1.0.x releases do not record premanaged state of properties.
buffer.append( " (properties managed)" );
}
if ( dep.isOptional() )
{
buffer.append( " (optional)" );
}
}
else
{