From 04905c106a59301d65a50169aa15233ba397cba3 Mon Sep 17 00:00:00 2001 From: James Strachan Date: Thu, 29 Mar 2012 20:50:36 +0100 Subject: [PATCH] added a little sample maven project to test out the JS maven plugin (its not quite working yet :) --- libraries/examples/js-example/pom.xml | 37 +++++++++++++++++++ .../src/main/kotlin/sample/Hello.kt | 7 ++++ .../src/test/kotlin/sample/SampleTest.kt | 9 +++++ libraries/examples/pom.xml | 25 +++++++++++++ 4 files changed, 78 insertions(+) create mode 100644 libraries/examples/js-example/pom.xml create mode 100644 libraries/examples/js-example/src/main/kotlin/sample/Hello.kt create mode 100644 libraries/examples/js-example/src/test/kotlin/sample/SampleTest.kt create mode 100644 libraries/examples/pom.xml diff --git a/libraries/examples/js-example/pom.xml b/libraries/examples/js-example/pom.xml new file mode 100644 index 00000000000..6b0c2687deb --- /dev/null +++ b/libraries/examples/js-example/pom.xml @@ -0,0 +1,37 @@ + + + + 4.0.0 + + + org.jetbrains.kotlin.examples + examples + 1.0-SNAPSHOT + + + js-example + + + + org.jetbrains.kotlin + stdlib + ${project.version} + + + + + src/main/kotlin + src/test/kotlin + + + + org.jetbrains.kotlin + kotlin-maven-plugin + ${project.version} + + + + + diff --git a/libraries/examples/js-example/src/main/kotlin/sample/Hello.kt b/libraries/examples/js-example/src/main/kotlin/sample/Hello.kt new file mode 100644 index 00000000000..ecef18ae3d8 --- /dev/null +++ b/libraries/examples/js-example/src/main/kotlin/sample/Hello.kt @@ -0,0 +1,7 @@ +package sample + +class Hello { + fun doSomething(): Unit { + println("Hello world!") + } +} \ No newline at end of file diff --git a/libraries/examples/js-example/src/test/kotlin/sample/SampleTest.kt b/libraries/examples/js-example/src/test/kotlin/sample/SampleTest.kt new file mode 100644 index 00000000000..6920f00f726 --- /dev/null +++ b/libraries/examples/js-example/src/test/kotlin/sample/SampleTest.kt @@ -0,0 +1,9 @@ +package test.sample + +import org.junit.Test + +class SampleTest { + Test fun dummy(): Unit { + + } +} \ No newline at end of file diff --git a/libraries/examples/pom.xml b/libraries/examples/pom.xml new file mode 100644 index 00000000000..4b3efbb189e --- /dev/null +++ b/libraries/examples/pom.xml @@ -0,0 +1,25 @@ + + + + 4.0.0 + + + org.jetbrains.kotlin + kotlin-project + 1.0-SNAPSHOT + + + org.jetbrains.kotlin.examples + examples + pom + + + ${project.basedir}/../.. + + + + js-example + +