From dafa895f8c683973cc6050327fb01729fc53f467 Mon Sep 17 00:00:00 2001 From: Kamil Doległo Date: Tue, 8 Sep 2020 00:13:55 +0200 Subject: Add integration test for linking between projects --- .../it-multimodule-1/first/src/main/kotlin/foo/FirstClass.kt | 11 +++++++++++ .../first/src/main/kotlin/foo/FirstSubclass.kt | 12 ++++++++++++ .../it-multimodule-1/first/src/main/kotlin/foo/Main.kt | 8 ++++++++ .../it-multimodule-1/first/src/main/kotlin/noPackage.kt | 3 +++ 4 files changed, 34 insertions(+) create mode 100644 integration-tests/gradle/projects/it-multimodule-1/first/src/main/kotlin/foo/FirstClass.kt create mode 100644 integration-tests/gradle/projects/it-multimodule-1/first/src/main/kotlin/foo/FirstSubclass.kt create mode 100644 integration-tests/gradle/projects/it-multimodule-1/first/src/main/kotlin/foo/Main.kt create mode 100644 integration-tests/gradle/projects/it-multimodule-1/first/src/main/kotlin/noPackage.kt (limited to 'integration-tests/gradle/projects/it-multimodule-1/first/src') diff --git a/integration-tests/gradle/projects/it-multimodule-1/first/src/main/kotlin/foo/FirstClass.kt b/integration-tests/gradle/projects/it-multimodule-1/first/src/main/kotlin/foo/FirstClass.kt new file mode 100644 index 00000000..93f73bf4 --- /dev/null +++ b/integration-tests/gradle/projects/it-multimodule-1/first/src/main/kotlin/foo/FirstClass.kt @@ -0,0 +1,11 @@ +package foo + +/** + * First class description + */ +open class FirstClass{ + /** + * PropertyOne description + */ + val propertyOne: Int = 5 +} \ No newline at end of file diff --git a/integration-tests/gradle/projects/it-multimodule-1/first/src/main/kotlin/foo/FirstSubclass.kt b/integration-tests/gradle/projects/it-multimodule-1/first/src/main/kotlin/foo/FirstSubclass.kt new file mode 100644 index 00000000..0deb65c0 --- /dev/null +++ b/integration-tests/gradle/projects/it-multimodule-1/first/src/main/kotlin/foo/FirstSubclass.kt @@ -0,0 +1,12 @@ +package foo + +/** + * Subclass description + * @property surname Surname description + */ +class FirstSubclass(var surname: String) : FirstClass() { + /** + * printNewLine description + */ + fun printNewline() = print("\r\n") +} \ No newline at end of file diff --git a/integration-tests/gradle/projects/it-multimodule-1/first/src/main/kotlin/foo/Main.kt b/integration-tests/gradle/projects/it-multimodule-1/first/src/main/kotlin/foo/Main.kt new file mode 100644 index 00000000..8c7f58a7 --- /dev/null +++ b/integration-tests/gradle/projects/it-multimodule-1/first/src/main/kotlin/foo/Main.kt @@ -0,0 +1,8 @@ +package foo + +/** + * Main function + */ +fun main(args : Array) { + println("Hello, world!") +} \ No newline at end of file diff --git a/integration-tests/gradle/projects/it-multimodule-1/first/src/main/kotlin/noPackage.kt b/integration-tests/gradle/projects/it-multimodule-1/first/src/main/kotlin/noPackage.kt new file mode 100644 index 00000000..c41e218f --- /dev/null +++ b/integration-tests/gradle/projects/it-multimodule-1/first/src/main/kotlin/noPackage.kt @@ -0,0 +1,3 @@ +fun noPackage(): String = "Hello there" + +open class NoPackage -- cgit