diff options
author | Kamil Doległo <kamilok1965@interia.pl> | 2019-04-29 16:06:53 +0200 |
---|---|---|
committer | Kamil Doległo <kamilok1965@interia.pl> | 2019-04-29 16:06:53 +0200 |
commit | 1f2ceb505aeb67fb21a483711a9bdbcebe3d9e0b (patch) | |
tree | 496f7eb7f244e32c2c41093aca02802a60aa7fdf /runners/android-gradle-plugin/src/main/kotlin | |
parent | 063bcfa85f07bd0ad7a28479931cd982665d2c28 (diff) | |
download | dokka-1f2ceb505aeb67fb21a483711a9bdbcebe3d9e0b.tar.gz dokka-1f2ceb505aeb67fb21a483711a9bdbcebe3d9e0b.tar.bz2 dokka-1f2ceb505aeb67fb21a483711a9bdbcebe3d9e0b.zip |
Fix Android Gradle Plugin
Diffstat (limited to 'runners/android-gradle-plugin/src/main/kotlin')
-rw-r--r-- | runners/android-gradle-plugin/src/main/kotlin/mainAndroid.kt | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/runners/android-gradle-plugin/src/main/kotlin/mainAndroid.kt b/runners/android-gradle-plugin/src/main/kotlin/mainAndroid.kt index 367b9257..2d79013e 100644 --- a/runners/android-gradle-plugin/src/main/kotlin/mainAndroid.kt +++ b/runners/android-gradle-plugin/src/main/kotlin/mainAndroid.kt @@ -7,6 +7,9 @@ import org.jetbrains.dokka.DokkaConfiguration.ExternalDocumentationLink.Builder import org.jetbrains.dokka.DokkaConfiguration.SourceRoot import java.io.File +internal const val CONFIGURATION_EXTENSION_NAME = "configuration" +internal const val MULTIPLATFORM_EXTENSION_NAME = "multiplatform" + open class DokkaAndroidPlugin : Plugin<Project> { override fun apply(project: Project) { DokkaVersion.loadFrom(javaClass.getResourceAsStream("/META-INF/gradle-plugins/org.jetbrains.dokka-android.properties")) @@ -15,6 +18,11 @@ open class DokkaAndroidPlugin : Plugin<Project> { moduleName = project.name outputDirectory = File(project.buildDir, "dokka").absolutePath } + project.tasks.withType(DokkaTask::class.java) { task -> + val passConfiguration = project.container(GradlePassConfigurationImpl::class.java) + task.extensions.add(MULTIPLATFORM_EXTENSION_NAME, passConfiguration) + task.extensions.create(CONFIGURATION_EXTENSION_NAME, GradlePassConfigurationImpl::class.java, "") + } } } |