diff options
Diffstat (limited to 'dokka-runners/dokkatoo/examples/build.gradle.kts')
-rw-r--r-- | dokka-runners/dokkatoo/examples/build.gradle.kts | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/dokka-runners/dokkatoo/examples/build.gradle.kts b/dokka-runners/dokkatoo/examples/build.gradle.kts new file mode 100644 index 00000000..da366c88 --- /dev/null +++ b/dokka-runners/dokkatoo/examples/build.gradle.kts @@ -0,0 +1,48 @@ +plugins { + buildsrc.conventions.`maven-publish-test` + buildsrc.conventions.`dokkatoo-example-projects` +} + +dokkaTemplateProjects { + register( + source = "examples/gradle/dokka-customFormat-example", + destination = "custom-format-example/dokka" + ) + register( + source = "examples/gradle/dokka-gradle-example", + destination = "gradle-example/dokka" + ) + register( + source = "examples/gradle/dokka-kotlinAsJava-example", + destination = "kotlin-as-java-example/dokka" + ) + register( + source = "examples/gradle/dokka-library-publishing-example", + destination = "library-publishing-example/dokka" + ) + register( + source = "examples/gradle/dokka-multimodule-example", + destination = "multimodule-example/dokka" + ) + register( + source = "examples/gradle/dokka-multiplatform-example", + destination = "multiplatform-example/dokka" + ) + register( + source = "examples/gradle/dokka-versioning-multimodule-example", + destination = "versioning-multimodule-example/dokka" + ) +} + +configurations.exampleProjectsElements.configure { + outgoing { + artifact(projectDir) { + builtBy(tasks.updateDokkatooExamples) + type = "directory" + } + } +} + +dokkaSourceDownload { + dokkaVersion.set(libs.versions.kotlin.dokka) +} |