From 3305f8b8a3af86ed61d3903394cc4f13ad4c508f Mon Sep 17 00:00:00 2001 From: qiaoyuang Date: Tue, 30 Apr 2024 17:36:19 +0800 Subject: [PATCH] Fix the problem that can't publish to Maven --- 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 bb52993..11501fa 100644 --- a/sqllin-driver/build.gradle.kts +++ b/sqllin-driver/build.gradle.kts @@ -200,4 +200,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 e8a0937..a365264 100644 --- a/sqllin-dsl/build.gradle.kts +++ b/sqllin-dsl/build.gradle.kts @@ -226,4 +226,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