aboutsummaryrefslogtreecommitdiff
path: root/integration-tests/gradle/projects/it-multimodule-1/second
diff options
context:
space:
mode:
authorKamil Doległo <kamilok1965@interia.pl>2020-09-08 00:13:55 +0200
committerBłażej Kardyś <bkardys@virtuslab.com>2020-09-30 13:43:08 +0200
commitdafa895f8c683973cc6050327fb01729fc53f467 (patch)
treefcfb810fecdbcf621644511a29a6c6c97c897621 /integration-tests/gradle/projects/it-multimodule-1/second
parentf8e1428a3235dae9fca9faaa4837313693d6456f (diff)
downloaddokka-dafa895f8c683973cc6050327fb01729fc53f467.tar.gz
dokka-dafa895f8c683973cc6050327fb01729fc53f467.tar.bz2
dokka-dafa895f8c683973cc6050327fb01729fc53f467.zip
Add integration test for linking between projects
Diffstat (limited to 'integration-tests/gradle/projects/it-multimodule-1/second')
-rw-r--r--integration-tests/gradle/projects/it-multimodule-1/second/build.gradle14
-rw-r--r--integration-tests/gradle/projects/it-multimodule-1/second/src/main/kotlin/NoPackageClass.kt1
-rw-r--r--integration-tests/gradle/projects/it-multimodule-1/second/src/main/kotlin/bar/SecondClass.kt21
-rw-r--r--integration-tests/gradle/projects/it-multimodule-1/second/src/main/kotlin/foo/ThirdClass.kt11
4 files changed, 47 insertions, 0 deletions
diff --git a/integration-tests/gradle/projects/it-multimodule-1/second/build.gradle b/integration-tests/gradle/projects/it-multimodule-1/second/build.gradle
new file mode 100644
index 00000000..188917bc
--- /dev/null
+++ b/integration-tests/gradle/projects/it-multimodule-1/second/build.gradle
@@ -0,0 +1,14 @@
+dependencies {
+ implementation project(":first")
+}
+dokkaHtml {
+ dependsOn(":first:dokkaHtml")
+ dokkaSourceSets {
+ "main" {
+ externalDocumentationLink {
+ url.set(new URL("file://" + rootProject.rootDir.toPath().toAbsolutePath().resolve("first/build/dokka/html/first/")))
+ packageListUrl.set(new URL("file://" + rootProject.rootDir.toPath().toAbsolutePath().resolve("first/build/dokka/html/first/package-list")))
+ }
+ }
+ }
+}
diff --git a/integration-tests/gradle/projects/it-multimodule-1/second/src/main/kotlin/NoPackageClass.kt b/integration-tests/gradle/projects/it-multimodule-1/second/src/main/kotlin/NoPackageClass.kt
new file mode 100644
index 00000000..d2f30ef7
--- /dev/null
+++ b/integration-tests/gradle/projects/it-multimodule-1/second/src/main/kotlin/NoPackageClass.kt
@@ -0,0 +1 @@
+class NoPackageClass : NoPackage()
diff --git a/integration-tests/gradle/projects/it-multimodule-1/second/src/main/kotlin/bar/SecondClass.kt b/integration-tests/gradle/projects/it-multimodule-1/second/src/main/kotlin/bar/SecondClass.kt
new file mode 100644
index 00000000..6a0c935e
--- /dev/null
+++ b/integration-tests/gradle/projects/it-multimodule-1/second/src/main/kotlin/bar/SecondClass.kt
@@ -0,0 +1,21 @@
+package bar
+/**
+ * Second class in second module description [foo.FirstClass]
+ * @author John Doe
+ * @version 0.1.3
+ * @param name Name description text text text.
+*/
+class SecondClass(val name: String) {
+ val firstProperty = "propertystring"
+ /**
+ * Second property in second module description [foo.FirstSubclass]
+ */
+ var secondProperty: String = ""
+ set(value) {
+ println("Second property not set")
+ }
+
+ init {
+ println("InitializerBlock")
+ }
+}
diff --git a/integration-tests/gradle/projects/it-multimodule-1/second/src/main/kotlin/foo/ThirdClass.kt b/integration-tests/gradle/projects/it-multimodule-1/second/src/main/kotlin/foo/ThirdClass.kt
new file mode 100644
index 00000000..cc24a6b7
--- /dev/null
+++ b/integration-tests/gradle/projects/it-multimodule-1/second/src/main/kotlin/foo/ThirdClass.kt
@@ -0,0 +1,11 @@
+package foo
+
+/**
+ * Third class description
+ */
+open class ThirdClass{
+ /**
+ * PropertyOne description
+ */
+ val propertyOne: Int = 5
+} \ No newline at end of file