29ac01f2e2
#KT-14668 Fixed
147 lines
6.0 KiB
XML
147 lines
6.0 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>1.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-stdlib-js</artifactId>
|
|
<version>${project.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.jetbrains.kotlin</groupId>
|
|
<artifactId>kotlin-test-js</artifactId>
|
|
<version>${project.version}</version>
|
|
</dependency>
|
|
</dependencies>
|
|
|
|
<properties>
|
|
<kotlin-home>${kotlin-dist}/kotlinc</kotlin-home>
|
|
<pp-profile>JS</pp-profile>
|
|
</properties>
|
|
|
|
<build>
|
|
<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"/>
|
|
<java classname="org.jetbrains.kotlin.preloading.Preloader" failonerror="true" fork="true">
|
|
<classpath>
|
|
<pathelement location="${kotlin-home}/lib/kotlin-preloader.jar"/>
|
|
</classpath>
|
|
<assertions>
|
|
<enable/>
|
|
</assertions>
|
|
<arg value="-cp"/>
|
|
<arg value="${kotlin-home}/lib/kotlin-compiler.jar"/>
|
|
<arg value="org.jetbrains.kotlin.preprocessor.PreprocessorCLI"/>
|
|
<arg value="${basedir}/../../stdlib/test"/>
|
|
<arg value="${basedir}/target/tests"/>
|
|
<arg value="${pp-profile}"/>
|
|
</java>
|
|
<copy todir="${basedir}/target/tests">
|
|
<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>
|
|
|
|
<configuration>
|
|
<args>
|
|
<arg>-Xallow-kotlin-package</arg>
|
|
</args>
|
|
</configuration>
|
|
|
|
<executions>
|
|
<execution>
|
|
<id>js</id>
|
|
<phase>compile</phase>
|
|
<goals>
|
|
<goal>js</goal>
|
|
</goals>
|
|
<configuration>
|
|
<sourceDirs>
|
|
<sourceDir>${basedir}/target/tests</sourceDir>
|
|
</sourceDirs>
|
|
</configuration>
|
|
</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-stdlib-js</artifactId>
|
|
<version>${project.version}</version>
|
|
<outputDirectory>${project.build.directory}/js/lib</outputDirectory>
|
|
<includes>*.js</includes>
|
|
</artifactItem>
|
|
<artifactItem>
|
|
<groupId>org.jetbrains.kotlin</groupId>
|
|
<artifactId>kotlin-test-js</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>
|