From 96cab0d0a2fc182ae500ecbaefde5f5538f41c5a Mon Sep 17 00:00:00 2001 From: Nikolay Kochetkov Date: Thu, 14 Sep 2023 07:07:42 +0200 Subject: [PATCH] Publication fix --- .idea/inspectionProfiles/Project_Default.xml | 6 ++++++ commonstatemachine/build.gradle.kts | 8 ++++++++ coroutines/build.gradle.kts | 8 ++++++++ 3 files changed, 22 insertions(+) diff --git a/.idea/inspectionProfiles/Project_Default.xml b/.idea/inspectionProfiles/Project_Default.xml index 875a112..a74ebba 100644 --- a/.idea/inspectionProfiles/Project_Default.xml +++ b/.idea/inspectionProfiles/Project_Default.xml @@ -2,21 +2,27 @@ diff --git a/commonstatemachine/build.gradle.kts b/commonstatemachine/build.gradle.kts index ed4601a..f84691f 100644 --- a/commonstatemachine/build.gradle.kts +++ b/commonstatemachine/build.gradle.kts @@ -144,6 +144,13 @@ android { } val dokkaHtml by tasks.getting(DokkaTask::class) +val javadocJar by tasks.creating(Jar::class) { + dependsOn(dokkaHtml) + group = "documentation" + archiveClassifier.set("javadoc") + from(tasks.dokkaHtml) +} + val libId = "commonstatemachine" val libName = "commonstatemachine" val libDesc = "Multiplatform state machine for mobile applications" @@ -169,6 +176,7 @@ publishing { } } publications.withType { + artifact(javadocJar) pom { name.set(libName) description.set(libDesc) diff --git a/coroutines/build.gradle.kts b/coroutines/build.gradle.kts index c91a237..54f98a9 100644 --- a/coroutines/build.gradle.kts +++ b/coroutines/build.gradle.kts @@ -150,6 +150,13 @@ android { } val dokkaHtml by tasks.getting(DokkaTask::class) +val javadocJar by tasks.creating(Jar::class) { + dependsOn(dokkaHtml) + group = "documentation" + archiveClassifier.set("javadoc") + from(tasks.dokkaHtml) +} + val libId = "coroutines" val libName = "coroutines" val libDesc = "Coroutines extension for CommonStateMachine" @@ -175,6 +182,7 @@ publishing { } } publications.withType { + artifact(javadocJar) pom { name.set(libName) description.set(libDesc)