diff options
author | Simon Ogorodnik <Simon.Ogorodnik@jetbrains.com> | 2017-05-16 18:26:22 +0300 |
---|---|---|
committer | Simon Ogorodnik <Simon.Ogorodnik@jetbrains.com> | 2017-05-16 19:37:32 +0300 |
commit | 177aff68f26b01c20508a51272607829c831d323 (patch) | |
tree | 44c974c95037af1f003fa09352a3e3408968b2b7 /runners/gradle-plugin/src/main/kotlin | |
parent | f9baebebf36904caea48fa45292874f53c4986ab (diff) | |
download | dokka-177aff68f26b01c20508a51272607829c831d323.tar.gz dokka-177aff68f26b01c20508a51272607829c831d323.tar.bz2 dokka-177aff68f26b01c20508a51272607829c831d323.zip |
Fix runner parameters for consistency, add default link to stdlib
Diffstat (limited to 'runners/gradle-plugin/src/main/kotlin')
-rw-r--r-- | runners/gradle-plugin/src/main/kotlin/main.kt | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/runners/gradle-plugin/src/main/kotlin/main.kt b/runners/gradle-plugin/src/main/kotlin/main.kt index bfa8feea..afd1f762 100644 --- a/runners/gradle-plugin/src/main/kotlin/main.kt +++ b/runners/gradle-plugin/src/main/kotlin/main.kt @@ -87,6 +87,7 @@ open class DokkaTask : DefaultTask() { @Input var externalDocumentationLinks = mutableListOf<DokkaConfiguration.ExternalDocumentationLink>() + @Input var noStdlibLink: Boolean = false protected open val sdkProvider: SdkProvider? = null @@ -195,7 +196,8 @@ open class DokkaTask : DefaultTask() { linkMappings, impliedPlatforms, perPackageOptions, - externalDocumentationLinks) + externalDocumentationLinks, + noStdlibLink) bootstrapProxy.configure( @@ -217,10 +219,6 @@ open class DokkaTask : DefaultTask() { } fun collectSourceRoots(): List<SourceRoot> { - if (sourceRoots.any()) { - return sourceRoots - } - val provider = sdkProvider val sourceDirs = if (sourceDirs.any()) { logger.info("Dokka: Taking source directories provided by the user") @@ -235,7 +233,7 @@ open class DokkaTask : DefaultTask() { sourceSets?.allSource?.srcDirs } - return sourceDirs?.filter { it.exists() }?.map { SourceRoot().apply { path = it.path } } ?: emptyList() + return sourceRoots + (sourceDirs?.filter { it.exists() }?.map { SourceRoot().apply { path = it.path } } ?: emptyList()) } @InputFiles |