blob: ff6a07becd4b1a48aea7a33d9f88fd8bbfaf65b6 [file] [log] [blame]
Denis Zharkov8e4e0e42016-06-22 18:27:19 +03001<?xml version="1.0" encoding="UTF-8"?>
Roman Elizarovf16fd272017-02-07 11:26:00 +03002<!--
3 ~ Copyright 2016-2017 JetBrains s.r.o.
4 ~
5 ~ Licensed under the Apache License, Version 2.0 (the "License");
6 ~ you may not use this file except in compliance with the License.
7 ~ You may obtain a copy of the License at
8 ~
9 ~ http://www.apache.org/licenses/LICENSE-2.0
10 ~
11 ~ Unless required by applicable law or agreed to in writing, software
12 ~ distributed under the License is distributed on an "AS IS" BASIS,
13 ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 ~ See the License for the specific language governing permissions and
15 ~ limitations under the License.
16 -->
17
Denis Zharkov8e4e0e42016-06-22 18:27:19 +030018<project
19 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
20 xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
21
22 <modelVersion>4.0.0</modelVersion>
23
24 <groupId>org.jetbrains.kotlinx</groupId>
25 <artifactId>kotlinx-coroutines</artifactId>
Roman Elizarov2dafc492017-09-29 23:18:02 +030026 <version>0.19-SNAPSHOT</version>
Denis Zharkov8e4e0e42016-06-22 18:27:19 +030027 <packaging>pom</packaging>
28
Roman Elizarov86487172017-09-08 13:29:16 +030029 <name>kotlinx-coroutines</name>
Roman Elizarovd6b5a7b2017-02-07 19:26:04 +030030 <description>Coroutines support libraries for Kotlin 1.1</description>
Denis Zharkov8e4e0e42016-06-22 18:27:19 +030031 <url>https://github.com/Kotlin/kotlinx.coroutines/</url>
32
33 <licenses>
34 <license>
35 <name>The Apache Software License, Version 2.0</name>
36 <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
37 <distribution>repo</distribution>
38 <comments>A business-friendly OSS license</comments>
39 </license>
40 </licenses>
41
Roman Elizarov8a07e5a2017-05-04 14:39:45 +030042 <properties>
43 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Roman Elizarov7ba3ed52017-09-29 22:17:54 +030044 <kotlin.version>1.1.51</kotlin.version>
Roman Elizarove82dee72017-08-18 16:49:09 +030045 <dokka.version>0.9.15</dokka.version>
Roman Elizarov8a07e5a2017-05-04 14:39:45 +030046 <junit.version>4.12</junit.version>
Roman Elizarov2dafc492017-09-29 23:18:02 +030047 <atomicfu.version>0.8</atomicfu.version>
Roman Elizarov8a07e5a2017-05-04 14:39:45 +030048 <maven.compiler.source>1.6</maven.compiler.source>
49 <maven.compiler.target>1.6</maven.compiler.target>
Roman Elizarov584ae3d2017-05-17 18:07:48 +030050 <core.docs.url>https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/</core.docs.url>
Roman Elizarov0570f382017-09-27 17:42:47 +030051 <core.docs.file>${project.basedir}/../../core/kotlinx-coroutines-core/target/dokka/kotlinx-coroutines-core/package-list</core.docs.file>
Roman Elizarov8a07e5a2017-05-04 14:39:45 +030052 </properties>
53
54 <prerequisites>
55 <maven>3.0.2</maven>
56 </prerequisites>
57
58 <developers>
59 <developer>
60 <id>JetBrains</id>
61 <name>JetBrains Team</name>
62 <organization>JetBrains</organization>
63 <organizationUrl>http://www.jetbrains.com</organizationUrl>
64 </developer>
65 </developers>
66
Denis Zharkov8e4e0e42016-06-22 18:27:19 +030067 <scm>
68 <url>https://github.com/Kotlin/kotlinx.coroutines</url>
69 <connection>scm:git:https://github.com/Kotlin/kotlinx.coroutines.git</connection>
70 <developerConnection>scm:git:https://github.com/Kotlin/kotlinx.coroutines.git</developerConnection>
71 </scm>
72
73 <repositories>
74 <repository>
Roman Elizarov7eb41ef2017-08-10 21:09:26 +030075 <id>central</id>
76 <url>http://jcenter.bintray.com</url>
77 </repository>
78 <repository>
79 <id>bintray-kotlin-kotlinx</id>
80 <name>bintray</name>
81 <url>http://kotlin.bintray.com/kotlinx</url>
82 </repository>
83 <repository>
Roman Elizarov15d0ec82017-06-09 16:45:46 +030084 <id>bintray-kotlin-eap</id>
85 <name>bintray-kotlin-eap</name>
86 <url>http://dl.bintray.com/kotlin/kotlin-eap</url>
Denis Zharkov8e4e0e42016-06-22 18:27:19 +030087 </repository>
88 </repositories>
89
90 <pluginRepositories>
91 <pluginRepository>
Roman Elizarov7eb41ef2017-08-10 21:09:26 +030092 <id>central</id>
93 <url>http://jcenter.bintray.com</url>
94 </pluginRepository>
95 <pluginRepository>
96 <id>bintray-kotlin-kotlinx</id>
97 <name>bintray</name>
98 <url>http://kotlin.bintray.com/kotlinx</url>
99 </pluginRepository>
100 <pluginRepository>
Roman Elizarov15d0ec82017-06-09 16:45:46 +0300101 <id>bintray-kotlin-eap</id>
102 <name>bintray-kotlin-eap</name>
103 <url>http://dl.bintray.com/kotlin/kotlin-eap</url>
Denis Zharkov8e4e0e42016-06-22 18:27:19 +0300104 </pluginRepository>
Roman Elizarov6c53d762017-01-24 17:04:40 +0300105 <pluginRepository>
106 <id>bintray-kotlin-dokka</id>
107 <name>bintray-kotlin-dokka</name>
108 <url>http://dl.bintray.com/kotlin/dokka</url>
109 </pluginRepository>
Denis Zharkov8e4e0e42016-06-22 18:27:19 +0300110 </pluginRepositories>
111
Denis Zharkov8e4e0e42016-06-22 18:27:19 +0300112 <distributionManagement>
113 <repository>
114 <id>bintray</id>
Ilya Gorbunovbc000732017-03-09 19:19:23 +0300115 <url>https://api.bintray.com/maven/kotlin/kotlinx/kotlinx.coroutines</url>
Denis Zharkov8e4e0e42016-06-22 18:27:19 +0300116 </repository>
117 </distributionManagement>
118
119 <modules>
Roman Elizarovf23274a2017-05-17 13:27:30 +0300120 <module>benchmarks</module>
121 <module>site</module>
122 <module>knit</module>
Roman Elizarove8d79342017-08-29 15:21:21 +0300123 <module>core/kotlinx-coroutines-core</module>
Roman Elizarov96d7a882017-08-30 15:17:05 +0300124 <module>core/kotlinx-coroutines-io</module>
Roman Elizarov37bf00e2017-03-09 12:16:05 +0300125 <module>reactive/kotlinx-coroutines-reactive</module>
Konrad KamiƄski3ae898c2017-03-30 17:37:00 +0200126 <module>reactive/kotlinx-coroutines-reactor</module>
Roman Elizarov37bf00e2017-03-09 12:16:05 +0300127 <module>reactive/kotlinx-coroutines-rx1</module>
128 <module>reactive/kotlinx-coroutines-rx2</module>
129 <module>reactive/kotlinx-coroutines-rx-example</module>
Roman Elizarov23f864e2017-03-03 19:57:47 +0300130 <module>ui/kotlinx-coroutines-swing</module>
131 <module>ui/kotlinx-coroutines-javafx</module>
132 <module>ui/kotlinx-coroutines-android</module>
Roman Elizarovf23274a2017-05-17 13:27:30 +0300133 <module>integration/kotlinx-coroutines-jdk8</module>
134 <module>integration/kotlinx-coroutines-nio</module>
135 <module>integration/kotlinx-coroutines-guava</module>
Roman Elizarov44e3ba52017-08-01 22:01:31 -0700136 <module>integration/kotlinx-coroutines-quasar</module>
Denis Zharkov8e4e0e42016-06-22 18:27:19 +0300137 </modules>
138
139 <dependencies>
140 <dependency>
141 <groupId>org.jetbrains.kotlin</groupId>
142 <artifactId>kotlin-stdlib</artifactId>
143 <version>${kotlin.version}</version>
144 <scope>compile</scope>
145 </dependency>
146 <dependency>
147 <groupId>junit</groupId>
148 <artifactId>junit</artifactId>
149 <version>${junit.version}</version>
150 <scope>test</scope>
151 </dependency>
Roman Elizarovb60d94c2017-08-15 16:12:01 +0300152 <dependency>
153 <groupId>org.jetbrains.kotlinx</groupId>
154 <artifactId>atomicfu</artifactId>
155 <version>${atomicfu.version}</version>
156 <scope>provided</scope>
157 </dependency>
Denis Zharkov8e4e0e42016-06-22 18:27:19 +0300158 </dependencies>
159
160 <build>
Denis Zharkov8e4e0e42016-06-22 18:27:19 +0300161 <plugins>
162 <plugin>
163 <artifactId>maven-source-plugin</artifactId>
164 <configuration>
165 </configuration>
Denis Zharkovfec9b2a2016-12-16 14:01:25 +0300166 <executions>
167 <execution>
168 <phase>package</phase>
169 <id>attach-sources</id>
170 <goals>
171 <goal>jar-no-fork</goal>
172 </goals>
173 </execution>
174 </executions>
Denis Zharkov8e4e0e42016-06-22 18:27:19 +0300175 </plugin>
Roman Elizarovb60d94c2017-08-15 16:12:01 +0300176 <!-- compile Kotlin files to staging directory -->
Denis Zharkov8e4e0e42016-06-22 18:27:19 +0300177 <plugin>
178 <groupId>org.jetbrains.kotlin</groupId>
179 <artifactId>kotlin-maven-plugin</artifactId>
180 <executions>
181 <execution>
182 <id>compile</id>
183 <phase>compile</phase>
184 <goals>
185 <goal>compile</goal>
186 </goals>
Roman Elizarovb60d94c2017-08-15 16:12:01 +0300187 <configuration>
188 <output>${project.build.directory}/classes-atomicfu</output>
189 </configuration>
Denis Zharkov8e4e0e42016-06-22 18:27:19 +0300190 </execution>
191 <execution>
192 <id>test-compile</id>
193 <phase>test-compile</phase>
194 <goals>
195 <goal>test-compile</goal>
196 </goals>
197 </execution>
198 </executions>
Roman Elizarov54c31752017-01-20 18:03:46 +0300199 <configuration>
200 <args>
201 <arg>-Xcoroutines=enable</arg>
202 </args>
203 </configuration>
Denis Zharkov8e4e0e42016-06-22 18:27:19 +0300204 </plugin>
Roman Elizarovb60d94c2017-08-15 16:12:01 +0300205 <!-- transform classes with AtomicFU plugin -->
206 <plugin>
207 <groupId>org.jetbrains.kotlinx</groupId>
208 <artifactId>atomicfu-maven-plugin</artifactId>
209 <version>${atomicfu.version}</version>
210 <executions>
211 <execution>
212 <goals>
213 <goal>transform</goal>
214 </goals>
215 <configuration>
216 <verbose>true</verbose>
217 <input>${project.build.directory}/classes-atomicfu</input>
218 </configuration>
219 </execution>
220 </executions>
221 </plugin>
222 <!-- documentation -->
Roman Elizarov6c53d762017-01-24 17:04:40 +0300223 <plugin>
224 <groupId>org.jetbrains.dokka</groupId>
225 <artifactId>dokka-maven-plugin</artifactId>
Roman Elizarov6c53d762017-01-24 17:04:40 +0300226 <executions>
227 <execution>
228 <phase>pre-site</phase>
229 <goals>
230 <goal>dokka</goal>
231 </goals>
232 </execution>
233 </executions>
234 <configuration>
235 <sourceLinks>
236 <link>
237 <dir>${project.basedir}/src/main/kotlin</dir>
Roman Elizarovdca2a132017-09-29 22:12:54 +0300238 <url>http://github.com/kotlin/kotlinx.coroutines/tree/master/${subdir}/${project.artifactId}/src/main/kotlin</url>
Roman Elizarov6c53d762017-01-24 17:04:40 +0300239 <urlSuffix>#L</urlSuffix>
240 </link>
241 </sourceLinks>
Roman Elizarovd6b5a7b2017-02-07 19:26:04 +0300242 <includes>
243 <include>${project.basedir}/README.md</include>
244 </includes>
245 <outputFormat>kotlin-website</outputFormat>
Roman Elizarovc00eb842017-02-22 15:03:00 +0300246 <jdkVersion>8</jdkVersion>
Roman Elizarov584ae3d2017-05-17 18:07:48 +0300247 <skip>true</skip> <!-- children override -->
Roman Elizarovd6b5a7b2017-02-07 19:26:04 +0300248 </configuration>
249 </plugin>
250 <plugin>
251 <artifactId>maven-site-plugin</artifactId>
252 <configuration>
253 <skip>true</skip>
Roman Elizarov6c53d762017-01-24 17:04:40 +0300254 </configuration>
255 </plugin>
Roman Elizarov1e129b32017-08-03 21:36:13 -0700256 <!-- enforcer -->
257 <plugin>
258 <groupId>org.apache.maven.plugins</groupId>
259 <artifactId>maven-enforcer-plugin</artifactId>
260 <executions>
261 <execution>
262 <id>enforce-versions</id>
263 <goals>
264 <goal>enforce</goal>
265 </goals>
266 <configuration>
267 <rules>
268 <requireJavaVersion>
269 <version>1.8.0</version>
270 </requireJavaVersion>
271 <requirePluginVersions>
272 <message>Always define plugin versions!</message>
273 <banLatest>true</banLatest>
274 <banRelease>true</banRelease>
Roman Elizarovddcbdd32017-08-09 18:19:38 +0300275 <banSnapshots>false</banSnapshots>
Roman Elizarov1e129b32017-08-03 21:36:13 -0700276 </requirePluginVersions>
277 </rules>
278 </configuration>
279 </execution>
280 </executions>
281 </plugin>
Denis Zharkov8e4e0e42016-06-22 18:27:19 +0300282 </plugins>
Roman Elizarovd6b5a7b2017-02-07 19:26:04 +0300283
284 <pluginManagement>
285 <plugins>
Roman Elizarov1e129b32017-08-03 21:36:13 -0700286 <!-- Kotlin -->
Roman Elizarovd6b5a7b2017-02-07 19:26:04 +0300287 <plugin>
288 <groupId>org.jetbrains.kotlin</groupId>
289 <artifactId>kotlin-maven-plugin</artifactId>
290 <version>${kotlin.version}</version>
291 </plugin>
Roman Elizarov1e129b32017-08-03 21:36:13 -0700292 <!-- Dokka -->
293 <plugin>
294 <groupId>org.jetbrains.dokka</groupId>
295 <artifactId>dokka-maven-plugin</artifactId>
296 <version>${dokka.version}</version>
297 </plugin>
298 <!-- Maven -->
299 <plugin>
300 <groupId>org.apache.maven.plugins</groupId>
301 <artifactId>maven-enforcer-plugin</artifactId>
302 <version>3.0.0-M1</version>
303 </plugin>
304 <plugin>
305 <groupId>org.apache.maven.plugins</groupId>
306 <artifactId>maven-clean-plugin</artifactId>
307 <version>2.5</version>
308 </plugin>
Roman Elizarovd6b5a7b2017-02-07 19:26:04 +0300309 <plugin>
310 <groupId>org.apache.maven.plugins</groupId>
311 <artifactId>maven-source-plugin</artifactId>
312 <version>2.4</version>
313 </plugin>
314 <plugin>
315 <groupId>org.apache.maven.plugins</groupId>
Roman Elizarov1e129b32017-08-03 21:36:13 -0700316 <artifactId>maven-install-plugin</artifactId>
317 <version>2.4</version>
318 </plugin>
319 <plugin>
320 <groupId>org.apache.maven.plugins</groupId>
Roman Elizarovd6b5a7b2017-02-07 19:26:04 +0300321 <artifactId>maven-release-plugin</artifactId>
322 <version>2.5.2</version>
323 </plugin>
324 <plugin>
325 <groupId>org.apache.maven.plugins</groupId>
326 <artifactId>maven-deploy-plugin</artifactId>
327 <version>2.8.2</version>
328 </plugin>
329 <plugin>
330 <groupId>org.apache.maven.plugins</groupId>
331 <artifactId>maven-surefire-plugin</artifactId>
332 <version>2.19.1</version>
333 </plugin>
334 <plugin>
335 <groupId>org.apache.maven.plugins</groupId>
336 <artifactId>maven-site-plugin</artifactId>
337 <version>3.3</version>
338 </plugin>
Roman Elizarov1e129b32017-08-03 21:36:13 -0700339 <plugin>
340 <groupId>org.apache.maven.plugins</groupId>
341 <artifactId>maven-jar-plugin</artifactId>
342 <version>3.0.2</version>
343 </plugin>
344 <plugin>
345 <groupId>org.apache.maven.plugins</groupId>
346 <artifactId>maven-dependency-plugin</artifactId>
347 <version>2.8</version>
348 </plugin>
349 <plugin>
350 <groupId>org.apache.maven.plugins</groupId>
351 <artifactId>maven-compiler-plugin</artifactId>
352 <version>3.1</version>
353 </plugin>
354 <plugin>
355 <groupId>org.apache.maven.plugins</groupId>
356 <artifactId>maven-resources-plugin</artifactId>
357 <version>2.6</version>
358 </plugin>
359 <plugin>
360 <groupId>org.apache.maven.plugins</groupId>
361 <artifactId>maven-antrun-plugin</artifactId>
362 <version>1.3</version>
363 </plugin>
Roman Elizarovd6b5a7b2017-02-07 19:26:04 +0300364 </plugins>
365 </pluginManagement>
Denis Zharkov8e4e0e42016-06-22 18:27:19 +0300366 </build>
Sergey Mashkov22035202017-07-11 18:28:47 +0300367
368 <profiles>
Roman Elizarov86487172017-09-08 13:29:16 +0300369 <!-- Profile to build against snapshot version of Kotlin compiler -->
Sergey Mashkov22035202017-07-11 18:28:47 +0300370 <profile>
371 <id>kotlin-snapshot</id>
372 <activation>
373 <activeByDefault>false</activeByDefault>
374 </activation>
375
376 <properties>
377 <kotlin.version>1.1-SNAPSHOT</kotlin.version>
378 </properties>
379
380 <pluginRepositories>
381 <pluginRepository>
382 <id>oss-p</id>
383 <url>https://oss.sonatype.org/content/repositories/snapshots</url>
384 </pluginRepository>
385 </pluginRepositories>
386 <repositories>
387 <repository>
388 <id>oss</id>
389 <url>https://oss.sonatype.org/content/repositories/snapshots</url>
390 </repository>
391 </repositories>
392 </profile>
Roman Elizarov86487172017-09-08 13:29:16 +0300393 <!-- Profile to attach javadocs with dokka -->
394 <profile>
395 <id>javadoc</id>
396 <activation>
397 <activeByDefault>false</activeByDefault>
398 </activation>
399 <!-- documentation -->
400 <build>
401 <plugins>
402 <plugin>
403 <groupId>org.jetbrains.dokka</groupId>
404 <artifactId>dokka-maven-plugin</artifactId>
405 <executions>
406 <!-- build dokka htmls and package list (for refs) -->
407 <execution>
408 <phase>package</phase>
409 <goals>
410 <goal>dokka</goal>
411 </goals>
412 </execution>
413 <!-- attach javadoc with dokka -->
414 <execution>
415 <id>attach-javadocs</id>
416 <phase>package</phase>
417 <goals>
418 <goal>javadocJar</goal>
419 </goals>
420 </execution>
421 </executions>
422 </plugin>
423 </plugins>
424 </build>
425 </profile>
Sergey Mashkov22035202017-07-11 18:28:47 +0300426 </profiles>
Roman Elizarov86487172017-09-08 13:29:16 +0300427</project>