From f8d459fcd1ff3b55a0551ca1673e6ce5f359ec49 Mon Sep 17 00:00:00 2001 From: "daniel.whiting" Date: Wed, 25 May 2022 17:42:59 -0700 Subject: [PATCH] Fix issue with modules of the same name --- source/src/main/groovy/com/kezong/fataar/FlavorArtifact.groovy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/src/main/groovy/com/kezong/fataar/FlavorArtifact.groovy b/source/src/main/groovy/com/kezong/fataar/FlavorArtifact.groovy index cdae3c10..c5e37503 100755 --- a/source/src/main/groovy/com/kezong/fataar/FlavorArtifact.groovy +++ b/source/src/main/groovy/com/kezong/fataar/FlavorArtifact.groovy @@ -122,7 +122,7 @@ class FlavorArtifact { private static Project getArtifactProject(Project project, ResolvedDependency unResolvedArtifact) { for (Project p : project.getRootProject().getAllprojects()) { - if (unResolvedArtifact.moduleName == p.name) { + if (unResolvedArtifact.moduleName == p.name && unResolvedArtifact.moduleGroup == p.group) { return p } }