aboutsummaryrefslogtreecommitdiff
path: root/runners/gradle-plugin/src
diff options
context:
space:
mode:
authorMarcin Aman <marcin.aman@gmail.com>2021-08-04 17:02:31 +0200
committerMarcin Aman <marcin.aman@gmail.com>2021-08-12 13:21:40 +0200
commit0fe8352ab057dfbbf690a723b2ccfc15b9977f4a (patch)
tree7017e7169950f907206832c862dce5e711e3cae8 /runners/gradle-plugin/src
parent42c0320e0c5f2d79a5438558bb87d4668aa4c3cc (diff)
downloaddokka-0fe8352ab057dfbbf690a723b2ccfc15b9977f4a.tar.gz
dokka-0fe8352ab057dfbbf690a723b2ccfc15b9977f4a.tar.bz2
dokka-0fe8352ab057dfbbf690a723b2ccfc15b9977f4a.zip
Webhelp-like frontend
Diffstat (limited to 'runners/gradle-plugin/src')
-rw-r--r--runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/DokkaMultiModuleTask.kt1
-rw-r--r--runners/gradle-plugin/src/test/kotlin/org/jetbrains/dokka/gradle/DokkaMultiModuleTaskTest.kt2
2 files changed, 3 insertions, 0 deletions
diff --git a/runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/DokkaMultiModuleTask.kt b/runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/DokkaMultiModuleTask.kt
index de503476..cffc8bf3 100644
--- a/runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/DokkaMultiModuleTask.kt
+++ b/runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/DokkaMultiModuleTask.kt
@@ -52,6 +52,7 @@ abstract class DokkaMultiModuleTask : AbstractDokkaParentTask() {
override fun buildDokkaConfiguration(): DokkaConfigurationImpl = DokkaConfigurationImpl(
moduleName = moduleName.getSafe(),
+ moduleVersion = moduleVersion.getSafe(),
outputDir = outputDirectory.getSafe(),
cacheRoot = cacheRoot.getSafe(),
pluginsConfiguration = buildPluginsConfiguration(),
diff --git a/runners/gradle-plugin/src/test/kotlin/org/jetbrains/dokka/gradle/DokkaMultiModuleTaskTest.kt b/runners/gradle-plugin/src/test/kotlin/org/jetbrains/dokka/gradle/DokkaMultiModuleTaskTest.kt
index 54f01fa5..97d1feea 100644
--- a/runners/gradle-plugin/src/test/kotlin/org/jetbrains/dokka/gradle/DokkaMultiModuleTaskTest.kt
+++ b/runners/gradle-plugin/src/test/kotlin/org/jetbrains/dokka/gradle/DokkaMultiModuleTaskTest.kt
@@ -64,6 +64,7 @@ class DokkaMultiModuleTaskTest {
}
multiModuleTask.apply {
+ moduleVersion by "1.5.0"
moduleName by "custom Module Name"
outputDirectory by project.buildDir.resolve("customOutputDirectory")
cacheRoot by File("customCacheRoot")
@@ -77,6 +78,7 @@ class DokkaMultiModuleTaskTest {
assertEquals(
DokkaConfigurationImpl(
moduleName = "custom Module Name",
+ moduleVersion = "1.5.0",
outputDir = multiModuleTask.project.buildDir.resolve("customOutputDirectory"),
cacheRoot = File("customCacheRoot"),
pluginsConfiguration = mutableListOf(PluginConfigurationImpl("pluginA", DokkaConfiguration.SerializationFormat.JSON, """ { "key" : "value2" } """)),