diff --git a/libraries/tools/kotlin-maven-plugin-test/src/it/test-multimodule-srcdir-absolute/pom.xml b/libraries/tools/kotlin-maven-plugin-test/src/it/test-multimodule-srcdir-absolute/pom.xml new file mode 100644 index 00000000000..053bd4273ce --- /dev/null +++ b/libraries/tools/kotlin-maven-plugin-test/src/it/test-multimodule-srcdir-absolute/pom.xml @@ -0,0 +1,49 @@ + + + 4.0.0 + + + org.jetbrains.kotlin + kotlin-project + 1.1-SNAPSHOT + ../../pom.xml + + + test-multimodule-root + pom + + + + org.jetbrains.kotlin + kotlin-stdlib + ${project.version} + + + + + sub + + + + ${project.basedir}/src/main/kotlin + + + kotlin-maven-plugin + org.jetbrains.kotlin + ${project.version} + + + compile + process-sources + + compile + + + + + + + + \ No newline at end of file diff --git a/libraries/tools/kotlin-maven-plugin-test/src/it/test-multimodule-srcdir-absolute/sub/pom.xml b/libraries/tools/kotlin-maven-plugin-test/src/it/test-multimodule-srcdir-absolute/sub/pom.xml new file mode 100644 index 00000000000..4068df5d854 --- /dev/null +++ b/libraries/tools/kotlin-maven-plugin-test/src/it/test-multimodule-srcdir-absolute/sub/pom.xml @@ -0,0 +1,41 @@ + + + 4.0.0 + + + org.jetbrains.kotlin + test-multimodule-root + 1.1-SNAPSHOT + ../pom.xml + + + test-multimodule-sub + + + + + kotlin-maven-plugin + org.jetbrains.kotlin + ${project.version} + + + compile + process-sources + + compile + + + + + ${project.basedir}/src/main/kotlin + + + + + + + + + diff --git a/libraries/tools/kotlin-maven-plugin-test/src/it/test-multimodule-srcdir-absolute/sub/src/main/kotlin/org/jetbrains/HelloWorld.kt b/libraries/tools/kotlin-maven-plugin-test/src/it/test-multimodule-srcdir-absolute/sub/src/main/kotlin/org/jetbrains/HelloWorld.kt new file mode 100644 index 00000000000..bc4fbf7504e --- /dev/null +++ b/libraries/tools/kotlin-maven-plugin-test/src/it/test-multimodule-srcdir-absolute/sub/src/main/kotlin/org/jetbrains/HelloWorld.kt @@ -0,0 +1,9 @@ +package org.jetbrains + +fun main(args : Array) { + System.out?.println(getGreeting()) +} + +fun getGreeting() : String { + return "Hello, World!" +} \ No newline at end of file diff --git a/libraries/tools/kotlin-maven-plugin-test/src/it/test-multimodule-srcdir-absolute/verify.bsh b/libraries/tools/kotlin-maven-plugin-test/src/it/test-multimodule-srcdir-absolute/verify.bsh new file mode 100644 index 00000000000..0762027c38b --- /dev/null +++ b/libraries/tools/kotlin-maven-plugin-test/src/it/test-multimodule-srcdir-absolute/verify.bsh @@ -0,0 +1,8 @@ +source(new File(basedir, "../../../verify-common.bsh").getAbsolutePath()); + +assertBuildLogHasLineThatContains("kotlin-maven-plugin"); + +File classFile = new File(basedir, "sub/target/classes/org/jetbrains/HelloWorldKt.class"); +if (!classFile.exists()) { + throw new FileNotFoundException("Could not find generated class file: " + classFile); +} \ No newline at end of file diff --git a/libraries/tools/kotlin-maven-plugin-test/src/it/test-multimodule-srcdir/pom.xml b/libraries/tools/kotlin-maven-plugin-test/src/it/test-multimodule-srcdir/pom.xml new file mode 100644 index 00000000000..053bd4273ce --- /dev/null +++ b/libraries/tools/kotlin-maven-plugin-test/src/it/test-multimodule-srcdir/pom.xml @@ -0,0 +1,49 @@ + + + 4.0.0 + + + org.jetbrains.kotlin + kotlin-project + 1.1-SNAPSHOT + ../../pom.xml + + + test-multimodule-root + pom + + + + org.jetbrains.kotlin + kotlin-stdlib + ${project.version} + + + + + sub + + + + ${project.basedir}/src/main/kotlin + + + kotlin-maven-plugin + org.jetbrains.kotlin + ${project.version} + + + compile + process-sources + + compile + + + + + + + + \ No newline at end of file diff --git a/libraries/tools/kotlin-maven-plugin-test/src/it/test-multimodule-srcdir/sub/pom.xml b/libraries/tools/kotlin-maven-plugin-test/src/it/test-multimodule-srcdir/sub/pom.xml new file mode 100644 index 00000000000..3ff30febbf3 --- /dev/null +++ b/libraries/tools/kotlin-maven-plugin-test/src/it/test-multimodule-srcdir/sub/pom.xml @@ -0,0 +1,41 @@ + + + 4.0.0 + + + org.jetbrains.kotlin + test-multimodule-root + 1.1-SNAPSHOT + ../pom.xml + + + test-multimodule-sub + + + + + kotlin-maven-plugin + org.jetbrains.kotlin + ${project.version} + + + compile + process-sources + + compile + + + + + src/main/kotlin + + + + + + + + + diff --git a/libraries/tools/kotlin-maven-plugin-test/src/it/test-multimodule-srcdir/sub/src/main/kotlin/org/jetbrains/HelloWorld.kt b/libraries/tools/kotlin-maven-plugin-test/src/it/test-multimodule-srcdir/sub/src/main/kotlin/org/jetbrains/HelloWorld.kt new file mode 100644 index 00000000000..bc4fbf7504e --- /dev/null +++ b/libraries/tools/kotlin-maven-plugin-test/src/it/test-multimodule-srcdir/sub/src/main/kotlin/org/jetbrains/HelloWorld.kt @@ -0,0 +1,9 @@ +package org.jetbrains + +fun main(args : Array) { + System.out?.println(getGreeting()) +} + +fun getGreeting() : String { + return "Hello, World!" +} \ No newline at end of file diff --git a/libraries/tools/kotlin-maven-plugin-test/src/it/test-multimodule-srcdir/verify.bsh b/libraries/tools/kotlin-maven-plugin-test/src/it/test-multimodule-srcdir/verify.bsh new file mode 100644 index 00000000000..0762027c38b --- /dev/null +++ b/libraries/tools/kotlin-maven-plugin-test/src/it/test-multimodule-srcdir/verify.bsh @@ -0,0 +1,8 @@ +source(new File(basedir, "../../../verify-common.bsh").getAbsolutePath()); + +assertBuildLogHasLineThatContains("kotlin-maven-plugin"); + +File classFile = new File(basedir, "sub/target/classes/org/jetbrains/HelloWorldKt.class"); +if (!classFile.exists()) { + throw new FileNotFoundException("Could not find generated class file: " + classFile); +} \ No newline at end of file