diff options
author | Simon Ogorodnik <Simon.Ogorodnik@jetbrains.com> | 2017-05-15 14:30:40 +0300 |
---|---|---|
committer | Simon Ogorodnik <Simon.Ogorodnik@jetbrains.com> | 2017-05-15 14:37:09 +0300 |
commit | 17c87f18f03b2c31b68251b17cbfa2531e0bd63c (patch) | |
tree | 155938792ae21ae877b13f75f7a0d1fb5c835695 /runners | |
parent | 106b821dc7c9142c24040c5acebb6847de04d9d3 (diff) | |
download | dokka-17c87f18f03b2c31b68251b17cbfa2531e0bd63c.tar.gz dokka-17c87f18f03b2c31b68251b17cbfa2531e0bd63c.tar.bz2 dokka-17c87f18f03b2c31b68251b17cbfa2531e0bd63c.zip |
Throw exception when unable to collect classpath for android dokka
Diffstat (limited to 'runners')
-rw-r--r-- | runners/android-gradle-plugin/src/main/kotlin/mainAndroid.kt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runners/android-gradle-plugin/src/main/kotlin/mainAndroid.kt b/runners/android-gradle-plugin/src/main/kotlin/mainAndroid.kt index 5d8cadfc..5db2ad2f 100644 --- a/runners/android-gradle-plugin/src/main/kotlin/mainAndroid.kt +++ b/runners/android-gradle-plugin/src/main/kotlin/mainAndroid.kt @@ -46,7 +46,7 @@ private class AndroidSdkProvider(private val project: Project) : SdkProvider { private val allVariantsClassPath by lazy { try { - variantManager?.variantDataList?.flatMap { it.variantConfiguration.compileClasspath }.orEmpty() + variantManager?.variantDataList?.flatMap { it.variantConfiguration.compileClasspath }!! } catch(e: Exception) { throw Exception("Unsupported version of android build tools, could not access variant manager.", e) } |