build.gradle: Lazily evaluate Android related arguments

This commit is contained in:
Florian Schmaus 2019-02-14 12:29:54 +01:00
parent a13829aa74
commit c0a64078c5
1 changed files with 6 additions and 2 deletions

View File

@ -97,8 +97,12 @@ allprojects {
':smack-omemo-signal',
':smack-omemo-signal-integration-test',
].collect{ project(it) }
androidBootClasspath = getAndroidRuntimeJar()
androidJavadocOffline = getAndroidJavadocOffline()
// Lazily evaluate the Android bootClasspath and offline
// Javadoc using a closure, so that targets which do not
// require it are still able to succeed without an Android
// SDK.
androidBootClasspath = { getAndroidRuntimeJar() }
androidJavadocOffline = { getAndroidJavadocOffline() }
junitVersion = '5.2.0'
}
group = 'org.igniterealtime.smack'