From 254f319aadf9327261da7c623fb22a632ce9bab8 Mon Sep 17 00:00:00 2001 From: Marcin Aman Date: Wed, 2 Dec 2020 15:34:32 +0100 Subject: Fix gradle passing 'unspecified' version to dokka configuration (#1650) --- .../src/main/kotlin/org/jetbrains/dokka/gradle/DokkaTask.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/DokkaTask.kt b/runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/DokkaTask.kt index caee0d92..078ef925 100644 --- a/runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/DokkaTask.kt +++ b/runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/DokkaTask.kt @@ -35,7 +35,7 @@ abstract class DokkaTask : AbstractDokkaTask() { override fun buildDokkaConfiguration(): DokkaConfigurationImpl = DokkaConfigurationImpl( moduleName = moduleName.getSafe(), - moduleVersion = moduleVersion.orNull, + moduleVersion = moduleVersion.orNull?.takeIf { it != "unspecified" }, outputDir = outputDirectory.getSafe(), cacheRoot = cacheRoot.getSafe(), offlineMode = offlineMode.getSafe(), -- cgit