151 lines
6.4 KiB
XML
151 lines
6.4 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<project
|
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
|
|
xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
|
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
<parent>
|
|
<groupId>org.jetbrains.kotlin</groupId>
|
|
<artifactId>kotlin-project</artifactId>
|
|
<version>0.1-SNAPSHOT</version>
|
|
<relativePath>../../pom.xml</relativePath>
|
|
</parent>
|
|
|
|
<artifactId>kotlin-js-tests</artifactId>
|
|
<packaging>jar</packaging>
|
|
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>org.jetbrains.kotlin</groupId>
|
|
<artifactId>kotlin-js-library</artifactId>
|
|
<version>${project.version}</version>
|
|
</dependency>
|
|
</dependencies>
|
|
|
|
<build>
|
|
<sourceDirectory>${basedir}/target/tests</sourceDirectory>
|
|
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-antrun-plugin</artifactId>
|
|
<version>1.7</version>
|
|
<executions>
|
|
<execution>
|
|
<id>copy-sources</id>
|
|
<phase>process-sources</phase>
|
|
<configuration>
|
|
<target>
|
|
<delete dir="${basedir}/target/tests" failonerror="false"/>
|
|
<mkdir dir="${basedir}/target/tests"/>
|
|
<copy todir="${basedir}/target/tests">
|
|
<fileset dir="${basedir}/../../stdlib/test">
|
|
<include name="**/*.kt"/>
|
|
|
|
|
|
<!-- exclude JVM tests-->
|
|
<exclude name="**/*JVMTest.kt"/>
|
|
<exclude name="**/*JVMTests.kt"/>
|
|
|
|
<exclude name="concurrent/**"/>
|
|
<exclude name="io/**"/>
|
|
<exclude name="template/**"/>
|
|
|
|
<exclude name="ExceptionTest.kt"/>
|
|
|
|
<!-- test for javaClass<T>()-->
|
|
<exclude name="JavaClassTest.kt"/>
|
|
<!-- javaClass(), Retention etc. -->
|
|
<exclude name="AnnotationsTest.kt"/>
|
|
|
|
<!-- Something missed in JS:-->
|
|
|
|
<!-- ImmutableArrayList -->
|
|
<exclude name="collections/ImmutableArrayListTest.kt"/>
|
|
<!-- BigInteger, BigDecimal -->
|
|
<exclude name="MathTest.kt"/>
|
|
<!-- fun String.toRegex -->
|
|
<exclude name="text/StringUtilTest.kt"/>
|
|
<!-- ByteArray.inputStream -->
|
|
<exclude name="OldStdlibTest.kt"/>
|
|
<!-- failsWith, javaClass -->
|
|
<exclude name="PreconditionsTest.kt"/>
|
|
<!-- dom.createDocument -->
|
|
<exclude name="dom/*.kt"/>
|
|
<!-- dom.createDocument -->
|
|
<exclude name="browser/BrowserTest.kt"/>
|
|
|
|
|
|
<!-- Can't run: spaces in function name -->
|
|
<exclude name="NaturalLanguageTest.kt"/>
|
|
|
|
|
|
<!-- TODO review: unused files? -->
|
|
<exclude name="Test.kt"/>
|
|
<exclude name="TestDslExample.kt"/>
|
|
</fileset>
|
|
<fileset dir="${basedir}/../../../js/js.libraries/test">
|
|
<include name="**/*.kt" />
|
|
</fileset>
|
|
</copy>
|
|
</target>
|
|
</configuration>
|
|
<goals>
|
|
<goal>run</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
|
|
<plugin>
|
|
<groupId>org.jetbrains.kotlin</groupId>
|
|
<artifactId>kotlin-maven-plugin</artifactId>
|
|
<version>${project.version}</version>
|
|
<executions>
|
|
<execution>
|
|
<id>js</id>
|
|
<phase>compile</phase>
|
|
<goals>
|
|
<goal>js</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-dependency-plugin</artifactId>
|
|
<executions>
|
|
<execution>
|
|
<id>unpack</id>
|
|
<phase>compile</phase>
|
|
<goals>
|
|
<goal>unpack</goal>
|
|
</goals>
|
|
<configuration>
|
|
<artifactItems>
|
|
<artifactItem>
|
|
<groupId>org.jetbrains.kotlin</groupId>
|
|
<artifactId>kotlin-js-library</artifactId>
|
|
<version>${project.version}</version>
|
|
<outputDirectory>${project.build.directory}/js/lib</outputDirectory>
|
|
<includes>*.js</includes>
|
|
</artifactItem>
|
|
</artifactItems>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
|
|
<plugin>
|
|
<artifactId>maven-deploy-plugin</artifactId>
|
|
<configuration>
|
|
<skip>true</skip>
|
|
</configuration>
|
|
</plugin>
|
|
|
|
</plugins>
|
|
</build>
|
|
</project>
|