public Set < ArtifactSpec > getTransientDependencies ( boolean includeUnsolved , boolean includePresolved ) { Set < ArtifactSpec > deps = new HashSet <> ( ) ; List < DependencyTree < ArtifactSpec > > sources = new ArrayList <> ( ) ; if ( includeUnsolved ) { sources . add ( this ) ; } if ( includePresolved ) { sources . add ( presolvedDependencies ) ; } sources . forEach ( s -> s . getDirectDeps ( ) . stream ( ) . filter ( d -> ! isThorntailRunner ( d ) ) . forEach ( d -> deps . addAll ( s . getTransientDeps ( d ) ) ) ) ; return deps ; }
Get the collection of transient dependencies defined in this instance .