From 0fa451ab82f1ef6a45b01de36bde666a92fca8b5 Mon Sep 17 00:00:00 2001 From: Mike Pitre <12040919+mikepitre@users.noreply.github.com> Date: Thu, 30 Jul 2026 00:04:40 -0400 Subject: [PATCH] build: allow skipping publication signing for local publishing publishToMavenLocal previously failed on the signing tasks unless Maven Central signing keys were configured, which no local dev setup has. All three publishing modules now skip signAllPublications() when -PRELEASE_SIGNING_ENABLED=false is passed, so consumers (e.g. the Expo module) can be built against a local SDK checkout with: ./gradlew publishToMavenLocal -PRELEASE_SIGNING_ENABLED=false Default behavior is unchanged: without the property, publications are signed exactly as before. --- source/api/build.gradle.kts | 6 +++++- source/telemetry/build.gradle.kts | 6 +++++- source/ui/build.gradle.kts | 6 +++++- 3 files changed, 15 insertions(+), 3 deletions(-) diff --git a/source/api/build.gradle.kts b/source/api/build.gradle.kts index 2485bb0eb..5caa09f41 100644 --- a/source/api/build.gradle.kts +++ b/source/api/build.gradle.kts @@ -58,7 +58,11 @@ tasks mavenPublishing { coordinates("com.clerk", "clerk-android-api", property("CLERK_API_VERSION") as String) publishToMavenCentral() - signAllPublications() + // Skip signing for local publishing: ./gradlew publishToMavenLocal + // -PRELEASE_SIGNING_ENABLED=false + if (providers.gradleProperty("RELEASE_SIGNING_ENABLED").orNull != "false") { + signAllPublications() + } pom { name.set("Clerk Android UI") description.set("UI components for Clerk Android SDK") diff --git a/source/telemetry/build.gradle.kts b/source/telemetry/build.gradle.kts index 4ea27674c..262f7dbc8 100644 --- a/source/telemetry/build.gradle.kts +++ b/source/telemetry/build.gradle.kts @@ -9,7 +9,11 @@ plugins { mavenPublishing { coordinates("com.clerk", "clerk-android-telemetry", property("CLERK_TELEMETRY_VERSION") as String) publishToMavenCentral() - signAllPublications() + // Skip signing for local publishing: ./gradlew publishToMavenLocal + // -PRELEASE_SIGNING_ENABLED=false + if (providers.gradleProperty("RELEASE_SIGNING_ENABLED").orNull != "false") { + signAllPublications() + } pom { name.set("Clerk Android Telemetry") description.set("Telemetry module for Clerk Android SDK") diff --git a/source/ui/build.gradle.kts b/source/ui/build.gradle.kts index c828b05ce..f5ce2ef72 100644 --- a/source/ui/build.gradle.kts +++ b/source/ui/build.gradle.kts @@ -61,7 +61,11 @@ tasks mavenPublishing { coordinates("com.clerk", "clerk-android-ui", property("CLERK_UI_VERSION") as String) publishToMavenCentral() - signAllPublications() + // Skip signing for local publishing: ./gradlew publishToMavenLocal + // -PRELEASE_SIGNING_ENABLED=false + if (providers.gradleProperty("RELEASE_SIGNING_ENABLED").orNull != "false") { + signAllPublications() + } pom { name.set("Clerk Android UI") description.set("UI components for Clerk Android SDK")