aboutsummaryrefslogtreecommitdiff
path: root/runners/gradle-plugin/src/main/kotlin
diff options
context:
space:
mode:
authorKamil Doległo <kamilok1965@interia.pl>2019-09-18 16:45:11 +0200
committerKamil Doległo <kamilok1965@interia.pl>2019-09-18 16:45:11 +0200
commit9145b1c0902fef2dba796bf5cc250e493fdaea45 (patch)
tree79a8bcca655d3fe0fbf12db74f32a55ad9b2d2ed /runners/gradle-plugin/src/main/kotlin
parent02fdeb2a67b6bb01c2f4afccaf578b89997f79b4 (diff)
downloaddokka-9145b1c0902fef2dba796bf5cc250e493fdaea45.tar.gz
dokka-9145b1c0902fef2dba796bf5cc250e493fdaea45.tar.bz2
dokka-9145b1c0902fef2dba796bf5cc250e493fdaea45.zip
Quick fix for Android config extraction
Diffstat (limited to 'runners/gradle-plugin/src/main/kotlin')
-rw-r--r--runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/ConfigurationExtractor.kt2
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