POM文件内容: |
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ Copyright 2016-2017 JetBrains s.r.o.
~
~ 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/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.jetbrains.kotlinx</groupId>
<artifactId>kotlinx-coroutines</artifactId>
<version>0.19.1</version>
<relativePath>../../pom.xml</relativePath>
</parent>
<artifactId>kotlinx-coroutines-core</artifactId>
<packaging>jar</packaging>
<properties>
<!-- makes sure core is portable to lowest common denominator -->
<kotlin.compiler.jdkHome>${env.JDK_16}</kotlin.compiler.jdkHome>
<subdir>core</subdir>
</properties>
<repositories>
<repository>
<id>bintray-devexperts</id>
<url>https://dl.bintray.com/devexperts/Maven/</url>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>com.devexperts.lincheck</groupId>
<artifactId>core</artifactId>
<version>1.8.1</version>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<sourceDirectory>src/main/kotlin</sourceDirectory>
<testSourceDirectory>src/test/kotlin</testSourceDirectory>
<plugins>
<!-- additional configuration for tests -->
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<executions>
<!-- fork tests under jdk 1.6 as an additional execution -->
<execution>
<id>jdk16-test</id>
<phase>test</phase>
<goals>
<goal>test</goal>
</goals>
<configuration>
<forkMode>once</forkMode>
<jvm>${env.JDK_16}/bin/java</jvm>
<argLine>-ea -Xmx1g -Xms1g -Djava.security.manager=kotlinx.coroutines.experimental.TestSecurityManager</argLine>
<excludes>
<exclude>**/*LinearizabilityTest.*</exclude>
<exclude>**/*LFTest.java</exclude>
</excludes>
</configuration>
</execution>
<!-- test lock-freedom on un-processed files -->
<execution>
<id>lockfreedom-test</id>
<phase>test</phase>
<goals>
<goal>test</goal>
</goals>
<configuration>
<forkMode>once</forkMode>
<classesDirectory>${project.build.directory}/classes-atomicfu</classesDirectory>
<includes>
<include>**/*LFTest.*</include>
</includes>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>test-jar</goal>
</goals>
</execution>
</executions>
</plugin>
<!-- documentation -->
<plugin>
<groupId>org.jetbrains.dokka</groupId>
<artifactId>dokka-maven-plugin</artifactId>
<version>${dokka.version}</version>
<configuration>
<skip>false</skip>
</configuration>
</plugin>
</plugins>
</build>
</project>
|