2015-05-04 02:33:42 -07:00
|
|
|
<!--
|
|
|
|
Copyright 2015 Alexey Andreev.
|
|
|
|
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
you may not use this file except in compliance with the License.
|
|
|
|
You may obtain a copy of the License at
|
|
|
|
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
See the License for the specific language governing permissions and
|
|
|
|
limitations under the License.
|
|
|
|
-->
|
|
|
|
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
|
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
|
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
|
|
|
|
<parent>
|
|
|
|
<groupId>org.teavm</groupId>
|
|
|
|
<artifactId>teavm-samples</artifactId>
|
2017-06-19 10:50:19 -07:00
|
|
|
<version>0.6.0-SNAPSHOT</version>
|
2015-05-04 02:33:42 -07:00
|
|
|
</parent>
|
|
|
|
<artifactId>teavm-samples-kotlin</artifactId>
|
|
|
|
|
|
|
|
<packaging>war</packaging>
|
|
|
|
|
|
|
|
<name>TeaVM Kotlin web application</name>
|
|
|
|
<description>A sample application written in Kotlin and compiled by TeaVM</description>
|
|
|
|
|
|
|
|
<properties>
|
2018-03-28 12:54:55 -07:00
|
|
|
<kotlin.version>1.2.31</kotlin.version>
|
2015-05-04 02:33:42 -07:00
|
|
|
</properties>
|
|
|
|
|
|
|
|
<dependencies>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.jetbrains.kotlin</groupId>
|
|
|
|
<artifactId>kotlin-stdlib</artifactId>
|
|
|
|
<version>${kotlin.version}</version>
|
2015-06-25 12:02:40 -07:00
|
|
|
<scope>provided</scope>
|
2015-05-04 02:33:42 -07:00
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>junit</groupId>
|
|
|
|
<artifactId>junit</artifactId>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.teavm</groupId>
|
|
|
|
<artifactId>teavm-classlib</artifactId>
|
|
|
|
<version>${project.version}</version>
|
|
|
|
<scope>provided</scope>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.teavm</groupId>
|
2015-10-09 22:36:56 -07:00
|
|
|
<artifactId>teavm-jso-apis</artifactId>
|
2015-05-04 02:33:42 -07:00
|
|
|
<version>${project.version}</version>
|
|
|
|
<scope>provided</scope>
|
|
|
|
</dependency>
|
|
|
|
</dependencies>
|
|
|
|
|
|
|
|
<build>
|
|
|
|
<sourceDirectory>${project.basedir}/src/main/kotlin</sourceDirectory>
|
|
|
|
|
|
|
|
<plugins>
|
|
|
|
<plugin>
|
|
|
|
<artifactId>kotlin-maven-plugin</artifactId>
|
|
|
|
<groupId>org.jetbrains.kotlin</groupId>
|
|
|
|
<version>${kotlin.version}</version>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>compile</id>
|
|
|
|
<phase>compile</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>compile</goal>
|
|
|
|
</goals>
|
|
|
|
</execution>
|
|
|
|
<execution>
|
|
|
|
<id>test-compile</id>
|
|
|
|
<phase>test-compile</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>test-compile</goal>
|
|
|
|
</goals>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.teavm</groupId>
|
|
|
|
<artifactId>teavm-maven-plugin</artifactId>
|
|
|
|
<version>${project.version}</version>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>web-client</id>
|
|
|
|
<goals>
|
2015-10-09 07:56:38 -07:00
|
|
|
<goal>compile</goal>
|
2015-05-04 02:33:42 -07:00
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<targetDirectory>${project.build.directory}/generated/js/teavm</targetDirectory>
|
2016-04-12 13:38:45 -07:00
|
|
|
<mainClass>org.teavm.samples.kotlin.HelloKt</mainClass>
|
2015-05-04 02:33:42 -07:00
|
|
|
<runtime>SEPARATE</runtime>
|
|
|
|
<minifying>false</minifying>
|
|
|
|
<debugInformationGenerated>true</debugInformationGenerated>
|
|
|
|
<sourceMapsGenerated>true</sourceMapsGenerated>
|
|
|
|
<sourceFilesCopied>true</sourceFilesCopied>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
<plugin>
|
|
|
|
<artifactId>maven-war-plugin</artifactId>
|
|
|
|
<version>2.4</version>
|
|
|
|
<configuration>
|
|
|
|
<webResources>
|
|
|
|
<resource>
|
|
|
|
<directory>${project.build.directory}/generated/js</directory>
|
|
|
|
</resource>
|
|
|
|
</webResources>
|
|
|
|
</configuration>
|
|
|
|
</plugin>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-source-plugin</artifactId>
|
|
|
|
</plugin>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-javadoc-plugin</artifactId>
|
|
|
|
</plugin>
|
|
|
|
</plugins>
|
|
|
|
</build>
|
2015-06-25 12:02:40 -07:00
|
|
|
</project>
|