aboutsummaryrefslogtreecommitdiff
path: root/runners/gradle-plugin/src/main/kotlin
diff options
context:
space:
mode:
authorSimon Ogorodnik <Simon.Ogorodnik@jetbrains.com>2017-05-16 18:26:22 +0300
committerSimon Ogorodnik <Simon.Ogorodnik@jetbrains.com>2017-05-16 19:37:32 +0300
commit177aff68f26b01c20508a51272607829c831d323 (patch)
tree44c974c95037af1f003fa09352a3e3408968b2b7 /runners/gradle-plugin/src/main/kotlin
parentf9baebebf36904caea48fa45292874f53c4986ab (diff)
downloaddokka-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.kt10
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