Skip to content

Commit 8648717

Browse files
committed
Initial support for Maven Central upload (javadocs, metadata)
1 parent aae062d commit 8648717

File tree

13 files changed

+71
-15
lines changed

13 files changed

+71
-15
lines changed

core/kotlinx-coroutines-io/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
<externalDocumentationLinks combine.children="append">
4848
<link>
4949
<url>${core.docs.url}</url>
50-
<packageListUrl>file:///${project.parent.basedir}/${core.docs.file}</packageListUrl>
50+
<packageListUrl>file:///${core.docs.file}</packageListUrl>
5151
</link>
5252
</externalDocumentationLinks>
5353
<skip>false</skip>

integration/kotlinx-coroutines-guava/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
<externalDocumentationLinks combine.children="append">
4242
<link>
4343
<url>${core.docs.url}</url>
44-
<packageListUrl>file:///${project.parent.basedir}/${core.docs.file}</packageListUrl>
44+
<packageListUrl>file:///${core.docs.file}</packageListUrl>
4545
</link>
4646
<link>
4747
<url>https://google.github.io/guava/releases/18.0/api/docs/</url>

integration/kotlinx-coroutines-jdk8/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
<externalDocumentationLinks combine.children="append">
4242
<link>
4343
<url>${core.docs.url}</url>
44-
<packageListUrl>file:///${project.parent.basedir}/${core.docs.file}</packageListUrl>
44+
<packageListUrl>file:///${core.docs.file}</packageListUrl>
4545
</link>
4646
</externalDocumentationLinks>
4747
<skip>false</skip>

integration/kotlinx-coroutines-nio/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
<externalDocumentationLinks combine.children="append">
4343
<link>
4444
<url>${core.docs.url}</url>
45-
<packageListUrl>file:///${project.parent.basedir}/${core.docs.file}</packageListUrl>
45+
<packageListUrl>file:///${core.docs.file}</packageListUrl>
4646
</link>
4747
</externalDocumentationLinks>
4848
<skip>false</skip>

integration/kotlinx-coroutines-quasar/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
<externalDocumentationLinks combine.children="append">
4242
<link>
4343
<url>${core.docs.url}</url>
44-
<packageListUrl>file:///${project.parent.basedir}/${core.docs.file}</packageListUrl>
44+
<packageListUrl>file:///${core.docs.file}</packageListUrl>
4545
</link>
4646
<link>
4747
<url>https://google.github.io/guava/releases/18.0/api/docs/</url>

pom.xml

Lines changed: 59 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@
2626
<version>0.18-SNAPSHOT</version>
2727
<packaging>pom</packaging>
2828

29+
<name>kotlinx-coroutines</name>
2930
<description>Coroutines support libraries for Kotlin 1.1</description>
30-
3131
<url>https://github.com/Kotlin/kotlinx.coroutines/</url>
3232

3333
<licenses>
@@ -48,7 +48,7 @@
4848
<maven.compiler.source>1.6</maven.compiler.source>
4949
<maven.compiler.target>1.6</maven.compiler.target>
5050
<core.docs.url>https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/</core.docs.url>
51-
<core.docs.file>core/kotlinx-coroutines-core/target/dokka/kotlinx-coroutines-core/package-list</core.docs.file>
51+
<core.docs.file>${highest-basedir}/core/kotlinx-coroutines-core/target/dokka/kotlinx-coroutines-core/package-list</core.docs.file>
5252
</properties>
5353

5454
<prerequisites>
@@ -279,6 +279,23 @@
279279
</execution>
280280
</executions>
281281
</plugin>
282+
<!-- determine highest-basedir -->
283+
<plugin>
284+
<groupId>org.commonjava.maven.plugins</groupId>
285+
<artifactId>directory-maven-plugin</artifactId>
286+
<executions>
287+
<execution>
288+
<id>directories</id>
289+
<goals>
290+
<goal>highest-basedir</goal>
291+
</goals>
292+
<phase>initialize</phase>
293+
<configuration>
294+
<property>highest-basedir</property>
295+
</configuration>
296+
</execution>
297+
</executions>
298+
</plugin>
282299
</plugins>
283300

284301
<pluginManagement>
@@ -361,11 +378,17 @@
361378
<artifactId>maven-antrun-plugin</artifactId>
362379
<version>1.3</version>
363380
</plugin>
381+
<plugin>
382+
<groupId>org.commonjava.maven.plugins</groupId>
383+
<artifactId>directory-maven-plugin</artifactId>
384+
<version>0.1</version>
385+
</plugin>
364386
</plugins>
365387
</pluginManagement>
366388
</build>
367389

368390
<profiles>
391+
<!-- Profile to build against snapshot version of Kotlin compiler -->
369392
<profile>
370393
<id>kotlin-snapshot</id>
371394
<activation>
@@ -389,5 +412,38 @@
389412
</repository>
390413
</repositories>
391414
</profile>
415+
<!-- Profile to attach javadocs with dokka -->
416+
<profile>
417+
<id>javadoc</id>
418+
<activation>
419+
<activeByDefault>false</activeByDefault>
420+
</activation>
421+
<!-- documentation -->
422+
<build>
423+
<plugins>
424+
<plugin>
425+
<groupId>org.jetbrains.dokka</groupId>
426+
<artifactId>dokka-maven-plugin</artifactId>
427+
<executions>
428+
<!-- build dokka htmls and package list (for refs) -->
429+
<execution>
430+
<phase>package</phase>
431+
<goals>
432+
<goal>dokka</goal>
433+
</goals>
434+
</execution>
435+
<!-- attach javadoc with dokka -->
436+
<execution>
437+
<id>attach-javadocs</id>
438+
<phase>package</phase>
439+
<goals>
440+
<goal>javadocJar</goal>
441+
</goals>
442+
</execution>
443+
</executions>
444+
</plugin>
445+
</plugins>
446+
</build>
447+
</profile>
392448
</profiles>
393-
</project>
449+
</project>

reactive/kotlinx-coroutines-reactive/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
<externalDocumentationLinks combine.children="append">
4444
<link>
4545
<url>${core.docs.url}</url>
46-
<packageListUrl>file:///${project.parent.basedir}/${core.docs.file}</packageListUrl>
46+
<packageListUrl>file:///${core.docs.file}</packageListUrl>
4747
</link>
4848
<link>
4949
<url>http://www.reactive-streams.org/reactive-streams-1.0.0-javadoc/</url>

reactive/kotlinx-coroutines-reactor/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
<externalDocumentationLinks combine.children="append">
4444
<link>
4545
<url>${core.docs.url}</url>
46-
<packageListUrl>file:///${project.parent.basedir}/${core.docs.file}</packageListUrl>
46+
<packageListUrl>file:///${core.docs.file}</packageListUrl>
4747
</link>
4848
<link>
4949
<url>https://projectreactor.io/docs/core/release/api/</url>

reactive/kotlinx-coroutines-rx1/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
<externalDocumentationLinks combine.children="append">
4444
<link>
4545
<url>${core.docs.url}</url>
46-
<packageListUrl>file:///${project.parent.basedir}/${core.docs.file}</packageListUrl>
46+
<packageListUrl>file:///${core.docs.file}</packageListUrl>
4747
</link>
4848
<link>
4949
<url>http://reactivex.io/RxJava/1.x/javadoc/</url>

reactive/kotlinx-coroutines-rx2/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
<externalDocumentationLinks combine.children="append">
4444
<link>
4545
<url>${core.docs.url}</url>
46-
<packageListUrl>file:///${project.parent.basedir}/${core.docs.file}</packageListUrl>
46+
<packageListUrl>file:///${core.docs.file}</packageListUrl>
4747
</link>
4848
<link>
4949
<url>http://reactivex.io/RxJava/javadoc/</url>

0 commit comments

Comments
 (0)