Skip to content

Commit

Permalink
Merge pull request joltup#77 from zxcpoiu/ignore_after_evaluate
Browse files Browse the repository at this point in the history
android: only do gradle afterEvaluate when building this lib alone
  • Loading branch information
RonRadtke authored Nov 14, 2021
2 parents 06f8c70 + 0d8ef48 commit 5674573
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,11 @@ dependencies {
}

afterEvaluate { project ->
// do this only when building this lib alone as a root project
if (project != rootProject) {
return
}

// some Gradle build hooks ref:
// https://www.oreilly.com/library/view/gradle-beyond-the/9781449373801/ch03.html
task androidJavadoc(type: Javadoc) {
Expand Down

0 comments on commit 5674573

Please sign in to comment.