aboutsummaryrefslogtreecommitdiff
path: root/runners/maven-plugin/src/main/kotlin
diff options
context:
space:
mode:
authorPaweł Marks <Kordyjan@users.noreply.github.com>2020-05-20 14:52:05 +0200
committerGitHub <noreply@github.com>2020-05-20 14:52:05 +0200
commitec9f4b3386ef979196e00334172051ece9a95acf (patch)
treef29b4101c306d824f39787d817bd038fbf740779 /runners/maven-plugin/src/main/kotlin
parentff450fedb3c8bdc318b55954bc37d93b30b9277c (diff)
parent6b85bb2ec2764a2c8b14717ef8e013a0f3c6e99f (diff)
downloaddokka-ec9f4b3386ef979196e00334172051ece9a95acf.tar.gz
dokka-ec9f4b3386ef979196e00334172051ece9a95acf.tar.bz2
dokka-ec9f4b3386ef979196e00334172051ece9a95acf.zip
Merge pull request #867 from Kotlin/f/merging-source-set-hints
Merging of platform dependent hints in sourceset tree
Diffstat (limited to 'runners/maven-plugin/src/main/kotlin')
-rw-r--r--runners/maven-plugin/src/main/kotlin/DokkaMojo.kt9
1 files changed, 8 insertions, 1 deletions
diff --git a/runners/maven-plugin/src/main/kotlin/DokkaMojo.kt b/runners/maven-plugin/src/main/kotlin/DokkaMojo.kt
index ac22eb57..e00e5f88 100644
--- a/runners/maven-plugin/src/main/kotlin/DokkaMojo.kt
+++ b/runners/maven-plugin/src/main/kotlin/DokkaMojo.kt
@@ -93,6 +93,12 @@ abstract class AbstractDokkaMojo : AbstractMojo() {
var sourceRoots: List<SourceRoot> = emptyList()
@Parameter
+ var dependentSourceRoots: List<SourceRoot> = emptyList()
+
+ @Parameter
+ var dependentSourceSets: List<String> = emptyList()
+
+ @Parameter
var samples: List<String> = emptyList()
@Parameter
@@ -206,7 +212,8 @@ abstract class AbstractDokkaMojo : AbstractMojo() {
classpath = classpath,
sourceSetName = sourceSetName,
sourceRoots = sourceDirectories.map { SourceRootImpl(it) },
- dependentSourceRoots = sourceRoots.map { SourceRootImpl(path = it.path) },
+ dependentSourceRoots = dependentSourceRoots.map { SourceRootImpl(path = it.path) },
+ dependentSourceSets = dependentSourceSets,
samples = samples,
includes = includes,
collectInheritedExtensionsFromLibraries = collectInheritedExtensionsFromLibraries, // TODO: Should we implement this?