From 8f979521d7ccdf1383ba3b63a301da7552a183c1 Mon Sep 17 00:00:00 2001 From: James Rich <2199651+jamesarich@users.noreply.github.com> Date: Thu, 29 Jan 2026 15:41:27 -0600 Subject: [PATCH] build: Configure JitPack publishing for core modules (#4366) --- .../src/main/kotlin/AndroidLibraryConventionPlugin.kt | 1 - .../src/main/kotlin/KmpLibraryConventionPlugin.kt | 1 - jitpack.yml | 3 ++- mesh_service_example/build.gradle.kts | 8 +++++--- 4 files changed, 7 insertions(+), 6 deletions(-) diff --git a/build-logic/convention/src/main/kotlin/AndroidLibraryConventionPlugin.kt b/build-logic/convention/src/main/kotlin/AndroidLibraryConventionPlugin.kt index a1ef4078f..0ded09806 100644 --- a/build-logic/convention/src/main/kotlin/AndroidLibraryConventionPlugin.kt +++ b/build-logic/convention/src/main/kotlin/AndroidLibraryConventionPlugin.kt @@ -34,7 +34,6 @@ class AndroidLibraryConventionPlugin : Plugin { apply(plugin = "meshtastic.spotless") apply(plugin = "meshtastic.dokka") apply(plugin = "meshtastic.kover") - apply(plugin = "maven-publish") extensions.configure { configureKotlinAndroid(this) diff --git a/build-logic/convention/src/main/kotlin/KmpLibraryConventionPlugin.kt b/build-logic/convention/src/main/kotlin/KmpLibraryConventionPlugin.kt index 7162b9ae0..687f70fe7 100644 --- a/build-logic/convention/src/main/kotlin/KmpLibraryConventionPlugin.kt +++ b/build-logic/convention/src/main/kotlin/KmpLibraryConventionPlugin.kt @@ -32,7 +32,6 @@ class KmpLibraryConventionPlugin : Plugin { apply(plugin = "meshtastic.spotless") apply(plugin = "meshtastic.dokka") apply(plugin = "meshtastic.kover") - apply(plugin = "maven-publish") configureKotlinMultiplatform() } diff --git a/jitpack.yml b/jitpack.yml index 3c56a24ee..6ed1a28d4 100644 --- a/jitpack.yml +++ b/jitpack.yml @@ -3,4 +3,5 @@ jdk: before_install: - ./gradlew :core:proto:generateGoogleReleaseProto install: - - ./gradlew publishToMavenLocal -Pgoogle + - ./gradlew :core:api:publishToMavenLocal :core:model:publishToMavenLocal :core:proto:publishToMavenLocal -Pgoogle +group: org.meshtastic diff --git a/mesh_service_example/build.gradle.kts b/mesh_service_example/build.gradle.kts index 8b083656a..af2a04641 100644 --- a/mesh_service_example/build.gradle.kts +++ b/mesh_service_example/build.gradle.kts @@ -36,10 +36,12 @@ configure { testOptions { unitTests.isReturnDefaultValues = true } } +val meshtasticVersion = "main-SNAPSHOT" + dependencies { - implementation(projects.core.api) - implementation(projects.core.model) - implementation(projects.core.proto) + implementation("com.github.meshtastic.Meshtastic-Android:core-api:$meshtasticVersion") + implementation("com.github.meshtastic.Meshtastic-Android:core-model:$meshtasticVersion") + implementation("com.github.meshtastic.Meshtastic-Android:core-proto:$meshtasticVersion") implementation(libs.androidx.activity.compose) implementation(libs.androidx.lifecycle.viewmodel.compose)