From e6664ec400e8dea659da5544229b613f0bf116cc Mon Sep 17 00:00:00 2001 From: qiaoyuang Date: Wed, 8 Nov 2023 12:36:16 +0800 Subject: [PATCH] Try to fix the publishing failed --- sqllin-driver/build.gradle.kts | 5 +++++ sqllin-dsl/build.gradle.kts | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/sqllin-driver/build.gradle.kts b/sqllin-driver/build.gradle.kts index 5d058b9..388d5c3 100644 --- a/sqllin-driver/build.gradle.kts +++ b/sqllin-driver/build.gradle.kts @@ -188,4 +188,9 @@ publishing { useInMemoryPgpKeys(SIGNING_KEY_ID, SIGNING_KEY, SIGNING_PASSWORD) sign(publishing.publications) } +} + +// TODO: remove after https://youtrack.jetbrains.com/issue/KT-46466 is fixed +project.tasks.withType(AbstractPublishToMaven::class.java).configureEach { + dependsOn(project.tasks.withType(Sign::class.java)) } \ No newline at end of file diff --git a/sqllin-dsl/build.gradle.kts b/sqllin-dsl/build.gradle.kts index 1847846..4c84c5c 100644 --- a/sqllin-dsl/build.gradle.kts +++ b/sqllin-dsl/build.gradle.kts @@ -219,4 +219,9 @@ publishing { useInMemoryPgpKeys(SIGNING_KEY_ID, SIGNING_KEY, SIGNING_PASSWORD) sign(publishing.publications) } +} + +// TODO: remove after https://youtrack.jetbrains.com/issue/KT-46466 is fixed +project.tasks.withType(AbstractPublishToMaven::class.java).configureEach { + dependsOn(project.tasks.withType(Sign::class.java)) } \ No newline at end of file