From fb464ad2f2fb74962ee2fdb1dd8fbcda562fd38d Mon Sep 17 00:00:00 2001 From: Ryan Wilson Date: Thu, 27 Aug 2026 10:29:07 -0400 Subject: [PATCH] feat: configure local publishing for Kotlin SDK Apply the maven-publish plugin in the Kotlin SDK build script (sdks/kotlin/build.gradle.kts) and add comments to enable local publishing to mavenLocal for integration testing purposes. --- sdks/kotlin/build.gradle.kts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/sdks/kotlin/build.gradle.kts b/sdks/kotlin/build.gradle.kts index 500986d..9b26f01 100644 --- a/sdks/kotlin/build.gradle.kts +++ b/sdks/kotlin/build.gradle.kts @@ -17,6 +17,7 @@ plugins { kotlin("jvm") version "1.9.22" kotlin("plugin.serialization") version "1.9.22" + `maven-publish` } kotlin { @@ -47,3 +48,14 @@ tasks.test { exceptionFormat = org.gradle.api.tasks.testing.logging.TestExceptionFormat.FULL } } + +// This configuration is purely for integration testing purposes. +// It enables publishing the Kotlin SDK to the local maven cache (e.g. `./gradlew publishToMavenLocal`), +// so that local platform test suites (like `firebase-android-sdk`) can resolve and compile it. +publishing { + publications { + create("mavenJava") { + from(components["java"]) + } + } +}