From 9145b1c0902fef2dba796bf5cc250e493fdaea45 Mon Sep 17 00:00:00 2001 From: Kamil Doległo Date: Wed, 18 Sep 2019 16:45:11 +0200 Subject: Quick fix for Android config extraction --- .../main/kotlin/org/jetbrains/dokka/gradle/ConfigurationExtractor.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'runners/gradle-plugin/src/main/kotlin/org') 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 -- cgit