diff options
Diffstat (limited to 'core/test-api')
-rw-r--r-- | core/test-api/src/main/kotlin/testApi/testRunner/TestDokkaConfigurationBuilder.kt | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/core/test-api/src/main/kotlin/testApi/testRunner/TestDokkaConfigurationBuilder.kt b/core/test-api/src/main/kotlin/testApi/testRunner/TestDokkaConfigurationBuilder.kt index d7b4f64f..7bbebe61 100644 --- a/core/test-api/src/main/kotlin/testApi/testRunner/TestDokkaConfigurationBuilder.kt +++ b/core/test-api/src/main/kotlin/testApi/testRunner/TestDokkaConfigurationBuilder.kt @@ -23,7 +23,7 @@ class TestDokkaConfigurationBuilder { check(lazySourceSets.isEmpty()) { "Cannot set moduleName after adding source sets" } field = value } - + var moduleVersion: String = "1.0-SNAPSHOT" var outputDir: String = "out" var format: String = "html" var offlineMode: Boolean = false @@ -32,8 +32,10 @@ class TestDokkaConfigurationBuilder { var pluginsConfigurations: Map<String, String> = emptyMap() var failOnWarning: Boolean = false private val lazySourceSets = mutableListOf<Lazy<DokkaSourceSetImpl>>() + fun build() = DokkaConfigurationImpl( moduleName = moduleName, + moduleVersion = moduleVersion, outputDir = File(outputDir), cacheRoot = cacheRoot?.let(::File), offlineMode = offlineMode, |