diff options
Diffstat (limited to 'runners/gradle-plugin/src/main/kotlin/org')
-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 |