From 4eae42c0be9f0ae8e0afdad8568e753ac836f08e Mon Sep 17 00:00:00 2001 From: Jorge Costa Date: Tue, 10 Sep 2024 13:03:21 +0200 Subject: [PATCH] Kmp (#31) * Added support to KMP * Bumped MVI to 1.8.0 * Added missing configs to upload to maven --- .github/workflows/release_compose.yml | 5 +---- .github/workflows/release_kotest.yml | 5 +---- .github/workflows/release_mvi.yml | 5 +---- build.gradle.kts | 5 ++--- 4 files changed, 5 insertions(+), 15 deletions(-) diff --git a/.github/workflows/release_compose.yml b/.github/workflows/release_compose.yml index 4362178..ea920e6 100644 --- a/.github/workflows/release_compose.yml +++ b/.github/workflows/release_compose.yml @@ -37,11 +37,8 @@ jobs: - name: Publish Library run: | echo "Publishing library🚀" - ./gradlew :mvi-compose:publish --no-daemon --no-parallel + ./gradlew :mvi-compose:publishAndReleaseToMavenCentral --no-configuration-cache echo "Published✅" - echo "Releasing repository...🚀" - ./gradlew closeAndReleaseRepository - echo "Released✅" env: ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.GPG_KEY }} ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.GPG_PASSWORD }} diff --git a/.github/workflows/release_kotest.yml b/.github/workflows/release_kotest.yml index 12bba74..52fcbb4 100644 --- a/.github/workflows/release_kotest.yml +++ b/.github/workflows/release_kotest.yml @@ -37,11 +37,8 @@ jobs: - name: Publish Library run: | echo "Publishing library🚀" - ./gradlew :mvi-kotest:publish --no-daemon --no-parallel + ./gradlew :mvi-kotest:publishAndReleaseToMavenCentral --no-configuration-cache echo "Published✅" - echo "Releasing repository...🚀" - ./gradlew closeAndReleaseRepository - echo "Released✅" env: ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.GPG_KEY }} ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.GPG_PASSWORD }} diff --git a/.github/workflows/release_mvi.yml b/.github/workflows/release_mvi.yml index cd4cdfa..f15e6b0 100644 --- a/.github/workflows/release_mvi.yml +++ b/.github/workflows/release_mvi.yml @@ -37,11 +37,8 @@ jobs: - name: Publish Library run: | echo "Publishing library🚀" - ./gradlew :mvi:publish --no-daemon --no-parallel + ./gradlew :mvi:publishAndReleaseToMavenCentral --no-configuration-cache echo "Published✅" - echo "Releasing repository...🚀" - ./gradlew closeAndReleaseRepository - echo "Released✅" env: ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.GPG_KEY }} ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.GPG_PASSWORD }} diff --git a/build.gradle.kts b/build.gradle.kts index 392e606..450a05f 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -18,11 +18,10 @@ plugins { alias(libs.plugins.mavenPublish) } -configure(subprojects) { - +allprojects { pluginManager.withPlugin("com.vanniktech.maven.publish") { mavenPublishing { - publishToMavenCentral(SonatypeHost.S01) + publishToMavenCentral(SonatypeHost.S01, automaticRelease = true) signAllPublications() } }