177 lines
7.2 KiB
XML
177 lines
7.2 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<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">
|
|
<parent>
|
|
<artifactId>kotlin-test-parent</artifactId>
|
|
<groupId>org.jetbrains.kotlin</groupId>
|
|
<version>1.1-SNAPSHOT</version>
|
|
</parent>
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
<artifactId>kotlin-test</artifactId>
|
|
|
|
<build>
|
|
<sourceDirectory>src/main/kotlin</sourceDirectory>
|
|
<testSourceDirectory>src/test/kotlin</testSourceDirectory>
|
|
|
|
<plugins>
|
|
<plugin>
|
|
<artifactId>maven-assembly-plugin</artifactId>
|
|
<executions>
|
|
<execution>
|
|
<phase>package</phase>
|
|
<goals>
|
|
<goal>single</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
<configuration>
|
|
<descriptors>
|
|
<descriptor>src/assembly/sources.xml</descriptor>
|
|
</descriptors>
|
|
</configuration>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
|
|
<profiles>
|
|
<profile>
|
|
<id>kotlin-js</id>
|
|
<activation>
|
|
<activeByDefault>false</activeByDefault>
|
|
</activation>
|
|
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>org.jetbrains.kotlin</groupId>
|
|
<artifactId>kotlin-js-library
|
|
</artifactId> <!-- TODO including this causes compilation to fail due to resolution ambiguity -->
|
|
</dependency>
|
|
</dependencies>
|
|
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.jetbrains.kotlin</groupId>
|
|
<artifactId>kotlin-maven-plugin</artifactId>
|
|
|
|
<configuration>
|
|
<args>
|
|
<arg>-Xallow-kotlin-package</arg>
|
|
</args>
|
|
</configuration>
|
|
|
|
<executions>
|
|
<execution>
|
|
<id>test-compile-js</id>
|
|
<phase>test-compile</phase>
|
|
<goals>
|
|
<goal>test-js</goal>
|
|
</goals>
|
|
<configuration>
|
|
<sourceDirs>
|
|
<dir>${project.basedir}/src/test/kotlin</dir>
|
|
<dir>${project.basedir}/src/test/kotlin.js</dir>
|
|
</sourceDirs>
|
|
</configuration>
|
|
</execution>
|
|
|
|
<execution>
|
|
<id>js-compile</id>
|
|
<phase>compile</phase>
|
|
<goals>
|
|
<goal>js</goal>
|
|
</goals>
|
|
<configuration>
|
|
<outputFile>${project.build.outputDirectory}/${project.artifactId}.js</outputFile>
|
|
<sourceDirs>
|
|
<dir>${project.basedir}/src/main/kotlin</dir>
|
|
<dir>${project.basedir}/src/main/kotlin.js</dir>
|
|
</sourceDirs>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
</profile>
|
|
<profile>
|
|
<id>kotlin-jvm</id>
|
|
<activation>
|
|
<activeByDefault>true</activeByDefault>
|
|
</activation>
|
|
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>org.jetbrains.kotlin</groupId>
|
|
<artifactId>kotlin-runtime</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>junit</groupId>
|
|
<artifactId>junit</artifactId>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
</dependencies>
|
|
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.jetbrains.kotlin</groupId>
|
|
<artifactId>kotlin-maven-plugin</artifactId>
|
|
|
|
<configuration>
|
|
<args>
|
|
<arg>-Xallow-kotlin-package</arg>
|
|
</args>
|
|
</configuration>
|
|
|
|
<executions>
|
|
<execution>
|
|
<id>compile</id>
|
|
<phase>compile</phase>
|
|
<goals>
|
|
<goal>compile</goal>
|
|
</goals>
|
|
<configuration>
|
|
<sourceDirs>
|
|
<dir>${project.basedir}/src/main/kotlin</dir>
|
|
<dir>${project.basedir}/src/main/kotlin.jvm</dir>
|
|
</sourceDirs>
|
|
</configuration>
|
|
</execution>
|
|
|
|
<execution>
|
|
<id>test-compile</id>
|
|
<phase>test-compile</phase>
|
|
<goals>
|
|
<goal>test-compile</goal>
|
|
</goals>
|
|
<configuration>
|
|
<sourceDirs>
|
|
<dir>${project.basedir}/src/test/kotlin</dir>
|
|
<dir>${project.basedir}/src/test/kotlin.jvm</dir>
|
|
</sourceDirs>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
<plugin>
|
|
<artifactId>maven-jar-plugin</artifactId>
|
|
<configuration>
|
|
<excludes>
|
|
<exclude>kotlin/internal/OnlyInputTypes*</exclude>
|
|
<exclude>kotlin/internal/InlineOnly*</exclude>
|
|
<exclude>kotlin/internal</exclude>
|
|
</excludes>
|
|
<archive>
|
|
<manifest>
|
|
<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
|
|
</manifest>
|
|
</archive>
|
|
</configuration>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
</profile>
|
|
</profiles>
|
|
</project>
|