From 27209b7d34d4cc85c76efe68b453e43a3f3132bf Mon Sep 17 00:00:00 2001 From: Nek-12 Date: Wed, 27 Dec 2023 11:50:14 +0300 Subject: [PATCH] try to fix ci publishing --- .github/workflows/publish.yml | 2 +- buildSrc/src/main/kotlin/ConfigurePublication.kt | 3 ++- .../commonMain/kotlin/pro/respawn/kmmutils/datetime/TimeExt.kt | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index f9c87be..ac8a8ae 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -43,4 +43,4 @@ jobs: env: ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.SIGNING_PASSWORD }} ORG_GRADLE_PROJECT_signingKey: ${{ secrets.SIGNING_KEY }} - run: ./gradlew publishAllPublicationsToSonatypeRepository --stacktrace + run: ./gradlew publishAllPublicationsToSonatypeRepository --stacktrace -Dorg.gradle.workers.max=1 diff --git a/buildSrc/src/main/kotlin/ConfigurePublication.kt b/buildSrc/src/main/kotlin/ConfigurePublication.kt index 39e6fad..8056f67 100644 --- a/buildSrc/src/main/kotlin/ConfigurePublication.kt +++ b/buildSrc/src/main/kotlin/ConfigurePublication.kt @@ -34,8 +34,9 @@ fun Project.publishMultiplatform() { signPublications(isReleaseBuild, properties) } - tasks.withType { + tasks.withType().configureEach { dependsOn(javadocTask) + dependsOn(tasks.withType()) } } diff --git a/datetime/src/commonMain/kotlin/pro/respawn/kmmutils/datetime/TimeExt.kt b/datetime/src/commonMain/kotlin/pro/respawn/kmmutils/datetime/TimeExt.kt index 8b92f59..e8d2bdd 100644 --- a/datetime/src/commonMain/kotlin/pro/respawn/kmmutils/datetime/TimeExt.kt +++ b/datetime/src/commonMain/kotlin/pro/respawn/kmmutils/datetime/TimeExt.kt @@ -1,6 +1,6 @@ @file:Suppress( "unused", "MemberVisibilityCanBePrivate", "NewApi", "MagicNumber", "TooManyFunctions", - "DeprecatedCallableAddReplaceWith" + "DeprecatedCallableAddReplaceWith", "DEPRECATION" ) package pro.respawn.kmmutils.datetime