private static void printDependencyMap ( Map < DependencyDescriptor , Set < DependencyDescriptor > > map , Project project ) { final String NEW_LINE = "\n" ; if ( project . getLogger ( ) . isEnabled ( LogLevel . INFO ) ) { StringBuilder builder = new StringBuilder ( 100 ) ; builder . append ( "Resolved dependencies:" ) . append ( NEW_LINE ) ; map . forEach ( ( k , v ) -> { builder . append ( k ) . append ( NEW_LINE ) ; v . forEach ( e -> builder . append ( "\t" ) . append ( e ) . append ( NEW_LINE ) ) ; builder . append ( NEW_LINE ) ; } ) ; project . getLogger ( ) . info ( builder . toString ( ) ) ; } }
Temp method for printing out the dependency map .