diff options
author | Kamil Doległo <kamilok1965@interia.pl> | 2019-09-18 16:45:11 +0200 |
---|---|---|
committer | Kamil Doległo <kamilok1965@interia.pl> | 2019-09-18 16:45:11 +0200 |
commit | 9145b1c0902fef2dba796bf5cc250e493fdaea45 (patch) | |
tree | 79a8bcca655d3fe0fbf12db74f32a55ad9b2d2ed /runners/gradle-plugin/src/main | |
parent | 02fdeb2a67b6bb01c2f4afccaf578b89997f79b4 (diff) | |
download | dokka-9145b1c0902fef2dba796bf5cc250e493fdaea45.tar.gz dokka-9145b1c0902fef2dba796bf5cc250e493fdaea45.tar.bz2 dokka-9145b1c0902fef2dba796bf5cc250e493fdaea45.zip |
Quick fix for Android config extraction
Diffstat (limited to 'runners/gradle-plugin/src/main')
-rw-r--r-- | runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/ConfigurationExtractor.kt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/ConfigurationExtractor.kt b/runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/ConfigurationExtractor.kt index af952148..b7ae600a 100644 --- a/runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/ConfigurationExtractor.kt +++ b/runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/ConfigurationExtractor.kt @@ -169,7 +169,7 @@ class ConfigurationExtractor(private val project: Project) { target?.compilations?.getByName(getMainCompilationName(target)) private fun getMainCompilationName(target: KotlinTarget?) = if (target?.isAndroidTarget() == true) - getVariants(project).filter { it.name == BuilderConstants.RELEASE }.map { it.name }.first() + getVariants(project).filter { it.buildType.name == BuilderConstants.RELEASE }.map { it.name }.first() else KotlinCompilation.MAIN_COMPILATION_NAME |