Skip to content

Commit 5674573

Browse files
authored
Merge pull request joltup#77 from zxcpoiu/ignore_after_evaluate
android: only do gradle afterEvaluate when building this lib alone
2 parents 06f8c70 + 0d8ef48 commit 5674573

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

android/build.gradle

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,11 @@ dependencies {
6262
}
6363

6464
afterEvaluate { project ->
65+
// do this only when building this lib alone as a root project
66+
if (project != rootProject) {
67+
return
68+
}
69+
6570
// some Gradle build hooks ref:
6671
// https://www.oreilly.com/library/view/gradle-beyond-the/9781449373801/ch03.html
6772
task androidJavadoc(type: Javadoc) {

0 commit comments

Comments
 (0)