aboutsummaryrefslogtreecommitdiff
path: root/runners
diff options
context:
space:
mode:
Diffstat (limited to 'runners')
-rw-r--r--runners/ant/src/main/kotlin/ant/dokka.kt5
-rw-r--r--runners/gradle-plugin/src/main/kotlin/main.kt2
-rw-r--r--runners/maven-plugin/src/main/kotlin/DokkaMojo.kt4
3 files changed, 9 insertions, 2 deletions
diff --git a/runners/ant/src/main/kotlin/ant/dokka.kt b/runners/ant/src/main/kotlin/ant/dokka.kt
index d1b6bef5..58e2fa28 100644
--- a/runners/ant/src/main/kotlin/ant/dokka.kt
+++ b/runners/ant/src/main/kotlin/ant/dokka.kt
@@ -17,10 +17,11 @@ class AntLogger(val task: Task): DokkaLogger {
class AntSourceLinkDefinition(var path: String? = null, var url: String? = null, var lineSuffix: String? = null)
-class AntSourceRoot(var path: String? = null, var platforms: String? = null) {
+class AntSourceRoot(var path: String? = null, var platforms: String? = null,
+ var platform: Platform = Platform.DEFAULT) {
fun toSourceRoot(): SourceRootImpl? = path?.let {
path ->
- SourceRootImpl(path, platforms?.split(',').orEmpty())
+ SourceRootImpl(path, platforms?.split(',').orEmpty(), platform)
}
}
diff --git a/runners/gradle-plugin/src/main/kotlin/main.kt b/runners/gradle-plugin/src/main/kotlin/main.kt
index 5f02cd0e..324ea8e0 100644
--- a/runners/gradle-plugin/src/main/kotlin/main.kt
+++ b/runners/gradle-plugin/src/main/kotlin/main.kt
@@ -396,6 +396,8 @@ class SourceRoot : DokkaConfiguration.SourceRoot, Serializable {
override var platforms: List<String> = arrayListOf()
+ override val analysisPlatform: Platform = Platform.DEFAULT
+
override fun toString(): String {
return "${platforms.joinToString()}::$path"
}
diff --git a/runners/maven-plugin/src/main/kotlin/DokkaMojo.kt b/runners/maven-plugin/src/main/kotlin/DokkaMojo.kt
index 09da90c6..6b86948d 100644
--- a/runners/maven-plugin/src/main/kotlin/DokkaMojo.kt
+++ b/runners/maven-plugin/src/main/kotlin/DokkaMojo.kt
@@ -39,6 +39,10 @@ abstract class AbstractDokkaMojo : AbstractMojo() {
@Parameter
override var platforms: List<String> = emptyList()
+
+ @Parameter
+ override var analysisPlatform: Platform = Platform.DEFAULT
+
}
class PackageOptions : DokkaConfiguration.PackageOptions {