Skip to content

Commit c52b40d

Browse files
authored
No module can depend on :app (duckduckgo#2135)
Task/Issue URL: https://app.asana.com/0/488551667048375/1202717423070870/f ### Description Ditto ### Steps to test this PR - [x] add `implementation project(path: ':app')` to any module that is not the `:app` module - [x] you should get an error in the IDE or terminal saying that you can't do it
1 parent e3a9132 commit c52b40d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

build.gradle

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,10 @@ subprojects {
6060
throw new GradleException("Invalid dependency $projectPath -> $dependencyPath. " +
6161
"'api' modules can't depend on other 'api' modules")
6262
}
63+
if (dependencyPath.endsWith(":app")) {
64+
throw new GradleException("Invalid dependency $projectPath -> $dependencyPath. " +
65+
"No other module can depend on ':app'")
66+
}
6367
}
6468
}
6569
}

0 commit comments

Comments
 (0)