Skip to content

fix(publish): don't re-publish omsdk-android on every release - #11

Merged
JakubMrozek merged 1 commit into
mainfrom
fix/omsdk-publish-gate
May 23, 2026
Merged

fix(publish): don't re-publish omsdk-android on every release#11
JakubMrozek merged 1 commit into
mainfrom
fix/omsdk-publish-gate

Conversation

@JakubMrozek

Copy link
Copy Markdown
Member

Problem

The 0.0.7 Maven Central publish failed validation:

1 failed Component Validation — Component with package url pkg:maven/so.kontext.iab/omsdk-android@1.6.4?type=aar already exists

./gradlew publishToMavenCentral bundles every module in the invocation into a single Central Portal deployment. so.kontext.iab:omsdk-android:1.6.4 was already published with 0.0.6, and Maven Central coordinates are immutable — so re-uploading it fails component validation and takes down the whole deployment. Result: kontext-kit-android:0.0.7 never published.

The OMID AAR version is independent of KontextKit's semver, so it should be published once per AAR bump, not on every KontextKit release.

Fix

Disable :omsdk-android's Maven Central tasks unless -PpublishOmsdk=true. Normal releases (./gradlew publishToMavenCentral) now publish only kontext-kit-android. When the bundled IAB AAR is actually updated, publish it explicitly with -PpublishOmsdk=true.

Verified: ./gradlew :omsdk-android:publishToMavenCentral (default) skips all omsdk MavenCentral tasks — including the staging task that writes into the deployment bundle — and succeeds with no network call.

Release note

No consumer-facing change. kontext-kit-android:0.0.7 content is unchanged; this only stops the redundant omsdk-android re-upload. Reusing the 0.0.7 version (it never published).

🤖 Generated with Claude Code

…shOmsdk

vanniktech bundles every module in one `publishToMavenCentral` invocation
into a single Central Portal deployment. Since omsdk-android's coordinate
(so.kontext.iab:omsdk-android:1.6.4) is immutable on Maven Central and its
version is independent of KontextKit's semver, every normal release tried
to re-upload it — the existing coordinate fails component validation and
takes down the whole deployment (this blocked the 0.0.7 release).

Disable the omsdk-android Central-publish tasks unless `-PpublishOmsdk=true`,
so a normal release deployment carries only kontext-kit-android. Pass the
flag only when actually bumping the bundled IAB AAR.

Verified: `./gradlew :omsdk-android:publishToMavenCentral` skips all of its
MavenCentral tasks (incl. the staging task) by default; the escape-hatch
flag re-enables them.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@JakubMrozek
JakubMrozek merged commit a85f7b7 into main May 23, 2026
1 check passed
@JakubMrozek
JakubMrozek deleted the fix/omsdk-publish-gate branch May 23, 2026 09:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant