aboutsummaryrefslogtreecommitdiff
path: root/runners/gradle-plugin/src/main/kotlin/org
diff options
context:
space:
mode:
authorMarcin Aman <marcin.aman@gmail.com>2020-12-02 15:34:32 +0100
committerGitHub <noreply@github.com>2020-12-02 15:34:32 +0100
commit254f319aadf9327261da7c623fb22a632ce9bab8 (patch)
tree831131756314592c09b29fa8fada41b23b9ce63b /runners/gradle-plugin/src/main/kotlin/org
parent3cb4702a68139788de6e1f7b087ced345f2b71ba (diff)
downloaddokka-254f319aadf9327261da7c623fb22a632ce9bab8.tar.gz
dokka-254f319aadf9327261da7c623fb22a632ce9bab8.tar.bz2
dokka-254f319aadf9327261da7c623fb22a632ce9bab8.zip
Fix gradle passing 'unspecified' version to dokka configuration (#1650)
Diffstat (limited to 'runners/gradle-plugin/src/main/kotlin/org')
-rw-r--r--runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/DokkaTask.kt2
1 files changed, 1 insertions, 1 deletions
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(),