public static List < Artifact > getAllArtifacts ( final Module module ) { final List < Artifact > artifacts = new ArrayList < Artifact > ( ) ; for ( final Module subModule : module . getSubmodules ( ) ) { artifacts . addAll ( getAllArtifacts ( subModule ) ) ; } artifacts . addAll ( module . getArtifacts ( ) ) ; return artifacts ; }
Returns all the Artifacts of the module