GRADLE-3147: Transitive diamond dependencies are only excluded if rules match for all paths. This change might have a slight impact on artifact resolution performance.