From 40f6597de737556053654d57b32637d7ff0821ea Mon Sep 17 00:00:00 2001 From: ObserverOfTime Date: Sat, 20 Apr 2024 17:11:51 +0300 Subject: [PATCH] build(serialization): publish individual platform artifacts --- .github/workflows/publish.yml | 20 +++++++++----------- build.gradle.kts | 2 +- kbigint-serialization/build.gradle.kts | 4 ++++ 3 files changed, 14 insertions(+), 12 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 217da09..507ed64 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -18,32 +18,30 @@ jobs: include: - os: ubuntu-latest platform: common - targets: >- - :kbigint:publishKotlinMultiplatformPublicationToLocalRepository - :kbigint-serialization:publishKotlinMultiplatformPublicationToLocalRepository + targets: publishKotlinMultiplatformPublicationToLocalRepository - os: ubuntu-latest platform: JVM - targets: :kbigint:publishJvmPublicationToLocalRepository + targets: publishJvmPublicationToLocalRepository - os: ubuntu-latest platform: Android - targets: :kbigint:publishAndroidReleasePublicationToLocalRepository + targets: publishAndroidReleasePublicationToLocalRepository - os: ubuntu-latest platform: JS - targets: :kbigint:publishJsPublicationToLocalRepository + targets: publishJsPublicationToLocalRepository - os: ubuntu-latest platform: Linux targets: >- - :kbigint:publishLinuxX64PublicationToLocalRepository - :kbigint:publishLinuxArm64PublicationToLocalRepository + publishLinuxX64PublicationToLocalRepository + publishLinuxArm64PublicationToLocalRepository - os: windows-latest platform: Windows targets: :kbigint:publishMingwX64PublicationToLocalRepository - os: macos-14 platform: macOS/iOS targets: >- - :kbigint:publishMacosX64PublicationToLocalRepository - :kbigint:publishMacosArm64PublicationToLocalRepository - :kbigint:publishIosArm64PublicationToLocalRepository + publishMacosX64PublicationToLocalRepository + publishMacosArm64PublicationToLocalRepository + publishIosArm64PublicationToLocalRepository steps: - name: Checkout repository uses: actions/checkout@v4 diff --git a/build.gradle.kts b/build.gradle.kts index 270ed73..1a4308e 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -19,7 +19,7 @@ allprojects { subprojects { group = "io.github.observeroftime.kbigint" - version = "0.1.1" + version = "0.1.2" if (System.getenv("CI") != null) { tasks.withType(AbstractTestTask::class) { diff --git a/kbigint-serialization/build.gradle.kts b/kbigint-serialization/build.gradle.kts index 0cb1eb0..619dca2 100644 --- a/kbigint-serialization/build.gradle.kts +++ b/kbigint-serialization/build.gradle.kts @@ -129,6 +129,10 @@ tasks.dokkaHtmlPartial { } } +tasks.withType().configureEach { + mustRunAfter(tasks.withType()) +} + tasks.create("javadocJar") { group = "documentation" archiveClassifier.set("javadoc")