refactor(publishing): adopt shared io.customer.android.publish plugin#738
Draft
mahmoud-elmorabea wants to merge 1 commit into
Draft
refactor(publishing): adopt shared io.customer.android.publish plugin#738mahmoud-elmorabea wants to merge 1 commit into
mahmoud-elmorabea wants to merge 1 commit into
Conversation
Migrate Maven Central publishing off the in-repo Groovy scripts onto the shared
io.customer.android.publish-* convention plugins from customerio/mobile-ci-tools, so this repo
and jist share one publishing source of truth.
- build.gradle: apply publish-root (replaces the in-line gradle-nexus + dokka applies and the
apply-from publish-root.gradle); swap the nexus + dokka buildscript classpaths for the shared
android-publish plugin (which bundles them transitively).
- 8 library modules: replace `ext { PUBLISH_* } + apply from publish-module.gradle` with
`apply plugin: 'io.customer.android.publish-module'` + `customerIoPublish { artifactId = … }`.
- buildSrc: add Dependencies.androidPublishPlugin / Versions.ANDROID_PUBLISH_PLUGIN.
- settings.gradle: -PuseLocalPublishPlugin includeBuild dev override.
- Delete scripts/publish-module.gradle and scripts/publish-root.gradle.
Validated locally via the includeBuild override: the build configures and modules expose the
release publication + Sonatype tasks. NOTE: CI will fail until the plugin is published to Maven
Central (mobile-ci-tools).
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Sample app builds 📱Below you will find the list of the latest versions of the sample apps. It's recommended to always download the latest builds of the sample apps to accurately test the pull request. |
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Migrates Maven Central publishing off this repo's in-line Groovy scripts onto the shared
io.customer.android.publish-*convention plugins from customerio/mobile-ci-tools#10, socustomerio-androidandjistshare one publishing source of truth.Changes
build.gradle: applyio.customer.android.publish-root(replaces the in-linegradle-nexus+dokkaapplies andapply from publish-root.gradle); swap thegradle-nexus+dokkabuildscript classpaths for the sharedandroid-publishplugin (which bundles them transitively).core,base,datapipelines,messaginginapp,messaginginapp-compose,messagingpush,location,tracking-migration): replaceext { PUBLISH_* } + apply from publish-module.gradlewithapply plugin: 'io.customer.android.publish-module'+customerIoPublish { artifactId = … }.buildSrc: addDependencies.androidPublishPlugin/Versions.ANDROID_PUBLISH_PLUGIN.settings.gradle:-PuseLocalPublishPluginincludeBuilddev override.scripts/publish-module.gradleandscripts/publish-root.gradle.Net: +48 / −159 — the publishing logic now lives once, in the shared plugin.
Validated locally
Via the
includeBuildoverride, the multi-module build configures and modules expose thereleasepublication + Sonatype tasks (publishReleasePublicationToSonatypeRepository, …).deploy-code.shtask names are unchanged.Resolving
io.customer.android:android-publish:0.1.0will fail until the plugin is published to Maven Central (mobile-ci-tools#10). Up for review of the migration shape.🤖 Generated with Claude Code