aboutsummaryrefslogtreecommitdiff
path: root/examples/gradle/dokka-multimodule-example/parentProject
diff options
context:
space:
mode:
Diffstat (limited to 'examples/gradle/dokka-multimodule-example/parentProject')
-rw-r--r--examples/gradle/dokka-multimodule-example/parentProject/build.gradle.kts20
-rw-r--r--examples/gradle/dokka-multimodule-example/parentProject/childProjectA/Module.md5
-rw-r--r--examples/gradle/dokka-multimodule-example/parentProject/childProjectA/build.gradle.kts18
-rw-r--r--examples/gradle/dokka-multimodule-example/parentProject/childProjectA/src/main/kotlin/demo/ChildProjectAClass.kt8
-rw-r--r--examples/gradle/dokka-multimodule-example/parentProject/childProjectB/Module.md5
-rw-r--r--examples/gradle/dokka-multimodule-example/parentProject/childProjectB/build.gradle.kts18
-rw-r--r--examples/gradle/dokka-multimodule-example/parentProject/childProjectB/src/main/kotlin/demo/ChildProjectBClass.kt8
7 files changed, 82 insertions, 0 deletions
diff --git a/examples/gradle/dokka-multimodule-example/parentProject/build.gradle.kts b/examples/gradle/dokka-multimodule-example/parentProject/build.gradle.kts
new file mode 100644
index 00000000..397ad22f
--- /dev/null
+++ b/examples/gradle/dokka-multimodule-example/parentProject/build.gradle.kts
@@ -0,0 +1,20 @@
+plugins {
+ /**
+ * Kotlin plugin necessary because of potential Gradle bug!
+ * This is not necessary if the kotlin gradle plugin is added as buildscript
+ * dependency like
+ *
+ * buildscript {
+ * dependencies {
+ * classpath("org.jetbrains.kotlin:kotlin-gradle-plugin")
+ * }
+ * }
+ */
+ kotlin("jvm")
+ id("org.jetbrains.dokka")
+}
+
+dependencies {
+ implementation(kotlin("stdlib"))
+}
+
diff --git a/examples/gradle/dokka-multimodule-example/parentProject/childProjectA/Module.md b/examples/gradle/dokka-multimodule-example/parentProject/childProjectA/Module.md
new file mode 100644
index 00000000..e6cf0e04
--- /dev/null
+++ b/examples/gradle/dokka-multimodule-example/parentProject/childProjectA/Module.md
@@ -0,0 +1,5 @@
+# Module childProjectA
+This is the child module a
+
+# Package demo
+This package contains a few examples of Dokka usage.
diff --git a/examples/gradle/dokka-multimodule-example/parentProject/childProjectA/build.gradle.kts b/examples/gradle/dokka-multimodule-example/parentProject/childProjectA/build.gradle.kts
new file mode 100644
index 00000000..b3c42aba
--- /dev/null
+++ b/examples/gradle/dokka-multimodule-example/parentProject/childProjectA/build.gradle.kts
@@ -0,0 +1,18 @@
+import org.jetbrains.dokka.gradle.DokkaTaskPartial
+
+plugins {
+ kotlin("jvm")
+ id("org.jetbrains.dokka")
+}
+
+dependencies {
+ implementation(kotlin("stdlib"))
+}
+
+tasks.withType<DokkaTaskPartial>().configureEach {
+ dokkaSourceSets {
+ configureEach {
+ includes.from("Module.md")
+ }
+ }
+}
diff --git a/examples/gradle/dokka-multimodule-example/parentProject/childProjectA/src/main/kotlin/demo/ChildProjectAClass.kt b/examples/gradle/dokka-multimodule-example/parentProject/childProjectA/src/main/kotlin/demo/ChildProjectAClass.kt
new file mode 100644
index 00000000..533b305c
--- /dev/null
+++ b/examples/gradle/dokka-multimodule-example/parentProject/childProjectA/src/main/kotlin/demo/ChildProjectAClass.kt
@@ -0,0 +1,8 @@
+@file:Suppress("unused")
+
+package demo
+
+/**
+ * Class defined in child project a
+ */
+class ChildProjectAClass
diff --git a/examples/gradle/dokka-multimodule-example/parentProject/childProjectB/Module.md b/examples/gradle/dokka-multimodule-example/parentProject/childProjectB/Module.md
new file mode 100644
index 00000000..27031edf
--- /dev/null
+++ b/examples/gradle/dokka-multimodule-example/parentProject/childProjectB/Module.md
@@ -0,0 +1,5 @@
+# Module childProjectB
+This is the child module b
+
+# Package demo
+This package contains a few examples of Dokka usage.
diff --git a/examples/gradle/dokka-multimodule-example/parentProject/childProjectB/build.gradle.kts b/examples/gradle/dokka-multimodule-example/parentProject/childProjectB/build.gradle.kts
new file mode 100644
index 00000000..b3c42aba
--- /dev/null
+++ b/examples/gradle/dokka-multimodule-example/parentProject/childProjectB/build.gradle.kts
@@ -0,0 +1,18 @@
+import org.jetbrains.dokka.gradle.DokkaTaskPartial
+
+plugins {
+ kotlin("jvm")
+ id("org.jetbrains.dokka")
+}
+
+dependencies {
+ implementation(kotlin("stdlib"))
+}
+
+tasks.withType<DokkaTaskPartial>().configureEach {
+ dokkaSourceSets {
+ configureEach {
+ includes.from("Module.md")
+ }
+ }
+}
diff --git a/examples/gradle/dokka-multimodule-example/parentProject/childProjectB/src/main/kotlin/demo/ChildProjectBClass.kt b/examples/gradle/dokka-multimodule-example/parentProject/childProjectB/src/main/kotlin/demo/ChildProjectBClass.kt
new file mode 100644
index 00000000..6bfd22eb
--- /dev/null
+++ b/examples/gradle/dokka-multimodule-example/parentProject/childProjectB/src/main/kotlin/demo/ChildProjectBClass.kt
@@ -0,0 +1,8 @@
+@file:Suppress("unused")
+
+package demo
+
+/**
+ * Class defined in child module b
+ */
+class ChildProjectBClass