diff --git a/libraries/pom.xml b/libraries/pom.xml index 736e5c92dab..545322b176b 100644 --- a/libraries/pom.xml +++ b/libraries/pom.xml @@ -83,6 +83,7 @@ tools/kotlin-gradle-plugin tools/kotlin-gradle-plugin-core tools/kotlin-maven-plugin + tools/kotlin-maven-plugin-test tools/kotlin-js-library tools/kotlin-js-tests tools/kotlin-js-tests-junit diff --git a/libraries/tools/kotlin-maven-plugin-test/.gitignore b/libraries/tools/kotlin-maven-plugin-test/.gitignore new file mode 100644 index 00000000000..b97b22398a9 --- /dev/null +++ b/libraries/tools/kotlin-maven-plugin-test/.gitignore @@ -0,0 +1 @@ +local-repo diff --git a/libraries/tools/kotlin-maven-plugin-test/pom.xml b/libraries/tools/kotlin-maven-plugin-test/pom.xml new file mode 100644 index 00000000000..45d894a6ed1 --- /dev/null +++ b/libraries/tools/kotlin-maven-plugin-test/pom.xml @@ -0,0 +1,78 @@ + + + + kotlin-project + org.jetbrains.kotlin + 0.1-SNAPSHOT + ../../pom.xml + + 4.0.0 + + kotlin-maven-plugin-test + + + + org.jetbrains.kotlin + kotlin-maven-plugin + ${project.version} + + + org.jetbrains.kotlin + kotlin-runtime + ${project.version} + + + + + + + integrationTest + + true + + + + + maven-invoker-plugin + 1.5 + + src/it + ${project.build.directory}/it + + */pom.xml + + + + local-repo + verify.bsh + true + + + + integration-test + + + install + run + + + + + + + + + + + noTest + + false + + + + diff --git a/libraries/tools/kotlin-maven-plugin/src/it/settings.xml b/libraries/tools/kotlin-maven-plugin-test/src/it/settings.xml similarity index 100% rename from libraries/tools/kotlin-maven-plugin/src/it/settings.xml rename to libraries/tools/kotlin-maven-plugin-test/src/it/settings.xml diff --git a/libraries/tools/kotlin-maven-plugin/src/it/test-classpath/pom.xml b/libraries/tools/kotlin-maven-plugin-test/src/it/test-classpath/pom.xml similarity index 82% rename from libraries/tools/kotlin-maven-plugin/src/it/test-classpath/pom.xml rename to libraries/tools/kotlin-maven-plugin-test/src/it/test-classpath/pom.xml index c6f3fa142f1..a0eab05def2 100644 --- a/libraries/tools/kotlin-maven-plugin/src/it/test-classpath/pom.xml +++ b/libraries/tools/kotlin-maven-plugin-test/src/it/test-classpath/pom.xml @@ -4,18 +4,14 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 - org.jetbrains.kotlin.it + + org.jetbrains.kotlin + kotlin-project + 0.1-SNAPSHOT + ../../pom.xml + + test-classpath - 1.0 - Test Hello World project - - - Test the kotlin-maven-plugin:compile goal on test-classpath project. - - - - 0.1-SNAPSHOT - @@ -23,6 +19,11 @@ junit 4.9 + + org.jetbrains.kotlin + kotlin-runtime + ${project.version} + @@ -45,14 +46,12 @@ - ${project.basedir}/src/main/kotlin - kotlin-maven-plugin org.jetbrains.kotlin - ${kotlin.version} + ${project.version} compile diff --git a/libraries/tools/kotlin-maven-plugin/src/it/test-classpath/src/main/kotlin/org/jetbrains/HelloWorld.kt b/libraries/tools/kotlin-maven-plugin-test/src/it/test-classpath/src/main/kotlin/org/jetbrains/HelloWorld.kt similarity index 100% rename from libraries/tools/kotlin-maven-plugin/src/it/test-classpath/src/main/kotlin/org/jetbrains/HelloWorld.kt rename to libraries/tools/kotlin-maven-plugin-test/src/it/test-classpath/src/main/kotlin/org/jetbrains/HelloWorld.kt diff --git a/libraries/tools/kotlin-maven-plugin/src/it/test-classpath/src/test/java/org/jetbrains/HelloWorldJavaTest.java b/libraries/tools/kotlin-maven-plugin-test/src/it/test-classpath/src/test/java/org/jetbrains/HelloWorldJavaTest.java similarity index 100% rename from libraries/tools/kotlin-maven-plugin/src/it/test-classpath/src/test/java/org/jetbrains/HelloWorldJavaTest.java rename to libraries/tools/kotlin-maven-plugin-test/src/it/test-classpath/src/test/java/org/jetbrains/HelloWorldJavaTest.java diff --git a/libraries/tools/kotlin-maven-plugin-test/src/it/test-classpath/verify.bsh b/libraries/tools/kotlin-maven-plugin-test/src/it/test-classpath/verify.bsh new file mode 100644 index 00000000000..170fc10928f --- /dev/null +++ b/libraries/tools/kotlin-maven-plugin-test/src/it/test-classpath/verify.bsh @@ -0,0 +1,6 @@ +import java.io.*; + +File file = new File(basedir, "target/test-classpath-0.1-SNAPSHOT.jar"); +if (!file.exists() || !file.isFile()) { + throw new FileNotFoundException("Could not find generated JAR: " + file); +} diff --git a/libraries/tools/kotlin-maven-plugin/src/it/test-helloworld/pom.xml b/libraries/tools/kotlin-maven-plugin-test/src/it/test-helloworld/pom.xml similarity index 79% rename from libraries/tools/kotlin-maven-plugin/src/it/test-helloworld/pom.xml rename to libraries/tools/kotlin-maven-plugin-test/src/it/test-helloworld/pom.xml index 1d279ecede0..be4a3ab1e40 100644 --- a/libraries/tools/kotlin-maven-plugin/src/it/test-helloworld/pom.xml +++ b/libraries/tools/kotlin-maven-plugin-test/src/it/test-helloworld/pom.xml @@ -4,18 +4,14 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 - org.jetbrains.kotlin.it + + org.jetbrains.kotlin + kotlin-project + 0.1-SNAPSHOT + ../../pom.xml + + test-helloworld - 1.0 - Test Hello World project - - - Test the kotlin-maven-plugin:compile goal on HelloWorld project. - - - - 0.1-SNAPSHOT - @@ -23,6 +19,11 @@ junit 4.9 + + org.jetbrains.kotlin + kotlin-runtime + ${project.version} + @@ -45,15 +46,12 @@ - ${project.basedir}/src/main/kotlin - - kotlin-maven-plugin org.jetbrains.kotlin - ${kotlin.version} + ${project.version} compile diff --git a/libraries/tools/kotlin-maven-plugin/src/it/test-helloworld/src/main/kotlin/org/jetbrains/HelloWorld.kt b/libraries/tools/kotlin-maven-plugin-test/src/it/test-helloworld/src/main/kotlin/org/jetbrains/HelloWorld.kt similarity index 100% rename from libraries/tools/kotlin-maven-plugin/src/it/test-helloworld/src/main/kotlin/org/jetbrains/HelloWorld.kt rename to libraries/tools/kotlin-maven-plugin-test/src/it/test-helloworld/src/main/kotlin/org/jetbrains/HelloWorld.kt diff --git a/libraries/tools/kotlin-maven-plugin/src/it/test-helloworld/src/test/java/org/jetbrains/HelloWorldJavaTest.java b/libraries/tools/kotlin-maven-plugin-test/src/it/test-helloworld/src/test/java/org/jetbrains/HelloWorldJavaTest.java similarity index 100% rename from libraries/tools/kotlin-maven-plugin/src/it/test-helloworld/src/test/java/org/jetbrains/HelloWorldJavaTest.java rename to libraries/tools/kotlin-maven-plugin-test/src/it/test-helloworld/src/test/java/org/jetbrains/HelloWorldJavaTest.java diff --git a/libraries/tools/kotlin-maven-plugin-test/src/it/test-helloworld/verify.bsh b/libraries/tools/kotlin-maven-plugin-test/src/it/test-helloworld/verify.bsh new file mode 100644 index 00000000000..00656d3d18d --- /dev/null +++ b/libraries/tools/kotlin-maven-plugin-test/src/it/test-helloworld/verify.bsh @@ -0,0 +1,6 @@ +import java.io.*; + +File file = new File(basedir, "target/test-helloworld-0.1-SNAPSHOT.jar"); +if (!file.exists() || !file.isFile()) { + throw new FileNotFoundException("Could not find generated JAR: " + file); +} diff --git a/libraries/tools/kotlin-maven-plugin/src/it/test-inlineDisabled/pom.xml b/libraries/tools/kotlin-maven-plugin-test/src/it/test-inlineDisabled/pom.xml similarity index 76% rename from libraries/tools/kotlin-maven-plugin/src/it/test-inlineDisabled/pom.xml rename to libraries/tools/kotlin-maven-plugin-test/src/it/test-inlineDisabled/pom.xml index e3962d2f054..505a63a79ef 100644 --- a/libraries/tools/kotlin-maven-plugin/src/it/test-inlineDisabled/pom.xml +++ b/libraries/tools/kotlin-maven-plugin-test/src/it/test-inlineDisabled/pom.xml @@ -4,18 +4,14 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 - org.jetbrains.kotlin.it + + org.jetbrains.kotlin + kotlin-project + 0.1-SNAPSHOT + ../../pom.xml + + test-inlineDisabled - 1.0 - Test Hello World project - - - Test the kotlin-maven-plugin:compile goal on HelloWorld project. - - - - 0.1-SNAPSHOT - @@ -23,6 +19,11 @@ junit 4.9 + + org.jetbrains.kotlin + kotlin-runtime + ${project.version} + @@ -45,15 +46,12 @@ - ${project.basedir}/src/main/kotlin - - kotlin-maven-plugin org.jetbrains.kotlin - ${kotlin.version} + ${project.version} compile @@ -70,11 +68,11 @@ - - false - + + false + - \ No newline at end of file + diff --git a/libraries/tools/kotlin-maven-plugin/src/it/test-inlineDisabled/src/main/kotlin/org/jetbrains/HelloWorld.kt b/libraries/tools/kotlin-maven-plugin-test/src/it/test-inlineDisabled/src/main/kotlin/org/jetbrains/HelloWorld.kt similarity index 100% rename from libraries/tools/kotlin-maven-plugin/src/it/test-inlineDisabled/src/main/kotlin/org/jetbrains/HelloWorld.kt rename to libraries/tools/kotlin-maven-plugin-test/src/it/test-inlineDisabled/src/main/kotlin/org/jetbrains/HelloWorld.kt diff --git a/libraries/tools/kotlin-maven-plugin/src/it/test-inlineDisabled/src/test/java/org/jetbrains/HelloWorldJavaTest.java b/libraries/tools/kotlin-maven-plugin-test/src/it/test-inlineDisabled/src/test/java/org/jetbrains/HelloWorldJavaTest.java similarity index 100% rename from libraries/tools/kotlin-maven-plugin/src/it/test-inlineDisabled/src/test/java/org/jetbrains/HelloWorldJavaTest.java rename to libraries/tools/kotlin-maven-plugin-test/src/it/test-inlineDisabled/src/test/java/org/jetbrains/HelloWorldJavaTest.java diff --git a/libraries/tools/kotlin-maven-plugin-test/src/it/test-inlineDisabled/verify.bsh b/libraries/tools/kotlin-maven-plugin-test/src/it/test-inlineDisabled/verify.bsh new file mode 100644 index 00000000000..5ecd01be2e1 --- /dev/null +++ b/libraries/tools/kotlin-maven-plugin-test/src/it/test-inlineDisabled/verify.bsh @@ -0,0 +1,6 @@ +import java.io.*; + +File file = new File(basedir, "target/test-inlineDisabled-0.1-SNAPSHOT.jar"); +if (!file.exists() || !file.isFile()) { + throw new FileNotFoundException("Could not find generated JAR: " + file); +} diff --git a/libraries/tools/kotlin-maven-plugin/pom.xml b/libraries/tools/kotlin-maven-plugin/pom.xml index 548c9a40337..eb5a0280675 100644 --- a/libraries/tools/kotlin-maven-plugin/pom.xml +++ b/libraries/tools/kotlin-maven-plugin/pom.xml @@ -20,12 +20,12 @@ maven-plugin - + org.apache.maven maven-core ${maven.version} - - + + org.apache.maven maven-plugin-api ${maven.version} @@ -60,55 +60,4 @@ - - - - - integrationTest - - true - - - - - maven-invoker-plugin - 1.5 - - src/it - ${project.build.directory}/it - - */pom.xml - - - - local-repo - verify.bsh - true - - - - integration-test - - - install - run - - - - - - - - - - - noTest - - false - - - diff --git a/libraries/tools/kotlin-maven-plugin/src/it/test-classpath/verify.bsh b/libraries/tools/kotlin-maven-plugin/src/it/test-classpath/verify.bsh deleted file mode 100644 index 84e8c9cabd5..00000000000 --- a/libraries/tools/kotlin-maven-plugin/src/it/test-classpath/verify.bsh +++ /dev/null @@ -1,7 +0,0 @@ -import java.io.*; - -File file = new File( basedir, "target/test-classpath-1.0.jar" ); -if (!file.exists() || !file.isFile()) -{ - throw new FileNotFoundException( "Could not find generated JAR: " + file ); -} \ No newline at end of file diff --git a/libraries/tools/kotlin-maven-plugin/src/it/test-helloworld/verify.bsh b/libraries/tools/kotlin-maven-plugin/src/it/test-helloworld/verify.bsh deleted file mode 100644 index 760db7e13d0..00000000000 --- a/libraries/tools/kotlin-maven-plugin/src/it/test-helloworld/verify.bsh +++ /dev/null @@ -1,7 +0,0 @@ -import java.io.*; - -File file = new File( basedir, "target/test-helloworld-1.0.jar" ); -if (!file.exists() || !file.isFile()) -{ - throw new FileNotFoundException( "Could not find generated JAR: " + file ); -} \ No newline at end of file diff --git a/libraries/tools/kotlin-maven-plugin/src/it/test-inlineDisabled/verify.bsh b/libraries/tools/kotlin-maven-plugin/src/it/test-inlineDisabled/verify.bsh deleted file mode 100644 index c6efc3505ec..00000000000 --- a/libraries/tools/kotlin-maven-plugin/src/it/test-inlineDisabled/verify.bsh +++ /dev/null @@ -1,7 +0,0 @@ -import java.io.*; - -File file = new File( basedir, "target/test-inlineDisabled-1.0.jar" ); -if (!file.exists() || !file.isFile()) -{ - throw new FileNotFoundException( "Could not find generated JAR: " + file ); -} \ No newline at end of file