From 3dcfe52c42335514d573ac6ff44ce9c0c76718dd Mon Sep 17 00:00:00 2001 From: asm0dey Date: Tue, 11 Jul 2023 17:41:53 +0200 Subject: [PATCH] Trying to fix deploy --- .github/workflows/deploy.yml | 6 +++--- build.gradle.kts | 2 ++ .../src/main/kotlin/module.publication.gradle.kts | 5 +---- .../src/main/kotlin/root.publication.gradle.kts | 3 +++ 4 files changed, 9 insertions(+), 7 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 0d54faa..77ca852 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -13,10 +13,10 @@ permissions: contents: read jobs: - build: - uses: ./.github/workflows/gradle.yml + # build: + # uses: ./.github/workflows/gradle.yml deploy: - needs: build + # needs: build strategy: matrix: include: diff --git a/build.gradle.kts b/build.gradle.kts index 544e7a8..c183be0 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -4,3 +4,5 @@ plugins { alias(libs.plugins.androidLibrary).apply(false) alias(libs.plugins.kotlinMultiplatform).apply(false) } +group = "com.github.asm0dey.dummylib" +version = "0.0.1" diff --git a/convention-plugins/src/main/kotlin/module.publication.gradle.kts b/convention-plugins/src/main/kotlin/module.publication.gradle.kts index 5544156..dd80b99 100644 --- a/convention-plugins/src/main/kotlin/module.publication.gradle.kts +++ b/convention-plugins/src/main/kotlin/module.publication.gradle.kts @@ -7,9 +7,6 @@ plugins { signing } -group = "com.github.asm0dey.dummylib" -version = "0.0.1" - val javadocJar by tasks.registering(Jar::class) { archiveClassifier.set("javadoc") } @@ -47,7 +44,7 @@ publishing { } signing { - if (System.clearProperty("signing.gnupg.keyName")!=null) { + if (property("signing.gnupg.keyName") != null) { useGpgCmd() sign(publishing.publications) } diff --git a/convention-plugins/src/main/kotlin/root.publication.gradle.kts b/convention-plugins/src/main/kotlin/root.publication.gradle.kts index b26b067..00d444b 100644 --- a/convention-plugins/src/main/kotlin/root.publication.gradle.kts +++ b/convention-plugins/src/main/kotlin/root.publication.gradle.kts @@ -2,6 +2,9 @@ plugins { id("io.github.gradle-nexus.publish-plugin") } +group = "com.github.asm0dey.dummylib" +version = "0.0.1" + nexusPublishing { // Configure maven central repository // https://github.com/gradle-nexus/publish-plugin#publishing-to-maven-central-via-sonatype-ossrh