Skip to content

Conversation

@gpunto
Copy link
Contributor

@gpunto gpunto commented Jan 2, 2026

Goal

AND-881: Extract publishing configuration to the plugins
AND-781: Unify CI Across SDKs

We now have publishing configuration in the common plugins and a new release workflow to go with it. This PR migrates to those.

Implementation

  • Remove publishing configuration in favor of the common one
  • Remove version in Configuration.kt in favor of setting it in gradle.properties
    This automatically sets the project version and allows us to override it as needed.
  • Populate version-related build config fields based on project.version
  • Update publish workflow to use the new one

Testing

We'll see when we try to release 🤞

☑️Contributor Checklist

General

  • I have signed the Stream CLA (required)
  • Assigned a person / code owner group (required)
  • Thread with the PR link started in a respective Slack channel (required internally)
  • PR targets the develop branch
  • PR is linked to the GitHub issue it resolves

Code & documentation

  • Changelog is updated with client-facing changes
  • New code is covered by unit tests
  • Comparison screenshots added for visual changes
  • Affected documentation updated (KDocs, docusaurus, tutorial)
  • Tutorial starter kit updated
  • Examples/guides starter kits updated (stream-video-examples)

☑️Reviewer Checklist

  • XML sample runs & works
  • Compose sample runs & works
  • Tutorial starter kit
  • Example starter kits work
  • UI Changes correct (before & after images)
  • Bugs validated (bugfixes)
  • New feature tested and works
  • Release notes and docs clearly describe changes
  • All code we touched has new or updated KDocs
  • Check the SDK Size Comparison table in the CI logs

🎉 GIF

Please provide a suitable gif that describes your work on this pull request

Summary by CodeRabbit

  • Chores
    • Updated build and release configuration and CI workflow; bumped project version to 1.18.3.
    • Revised publishing pipeline and credential mappings.
    • Removed legacy Maven publishing setup from multiple modules.
    • Aligned project tooling and plugin conventions to the new platform version and added some developer tooling plugins.

✏️ Tip: You can customize this high-level summary in your review settings.

@gpunto gpunto added the pr:ci CI / GitHub Actions / workflow updates label Jan 2, 2026
@github-actions
Copy link
Contributor

github-actions bot commented Jan 2, 2026

PR checklist ✅

All required conditions are satisfied:

  • Title length is OK (or ignored by label).
  • At least one pr: label exists.
  • Sections ### Goal, ### Implementation, and ### Testing are filled.

🎉 Great job! This PR is ready for review.

@gpunto gpunto force-pushed the plugins.publishing branch from 24ced5e to 3b5b679 Compare January 2, 2026 15:46
@github-actions
Copy link
Contributor

github-actions bot commented Jan 2, 2026

SDK Size Comparison 📏

SDK Before After Difference Status
stream-video-android-core 11.94 MB 11.94 MB 0.00 MB 🟢
stream-video-android-ui-xml 5.68 MB 5.68 MB 0.00 MB 🟢
stream-video-android-ui-compose 6.28 MB 6.28 MB 0.00 MB 🟢

@gpunto gpunto marked this pull request as ready for review January 5, 2026 08:39
@gpunto gpunto requested a review from a team as a code owner January 5, 2026 08:39
@coderabbitai
Copy link

coderabbitai bot commented Jan 5, 2026

Walkthrough

Consolidates publishing into shared plugins, removes module-level Maven publishing and hardcoded version constants, moves version control to gradle.properties with dynamic parsing, updates plugin catalog, and switches CI workflows to use GetStream/stream-build-conventions-android with updated inputs and secrets.

Changes

Cohort / File(s) Summary
CI/CD Workflow Updates
/.github/workflows/publish-new-version.yml
Switched reusable workflow reference to GetStream/stream-build-conventions-android/[email protected]; made bump input required/default minor; added concurrency group; granted contents: write permission; replaced secret mappings with github-token, maven-central-username, maven-central-password, signing-key, signing-key-id, signing-key-password; removed several deprecated inputs.
Root Build & Publishing Config
build.gradle.kts, gradle/libs.versions.toml
Added io.getstream.java.library and io.getstream.java.platform plugin aliases; bumped streamConventions to 0.5.0; removed maven-publish catalog entry; added new plugin entries (paparazzi, crashlytics, hilt, play-publisher, baseline-profile); removed snapshot/versioning and local Maven Publish blocks and related imports.
Version Management
gradle.properties, buildSrc/src/main/kotlin/io/getstream/video/android/Configuration.kt
Added version=1.18.3 to gradle.properties; deleted multiple hardcoded version/publication constants from Configuration.kt (major/minor/patch, versionName/versionCode, snapshot names, artifactGroup, etc.), leaving only streamWebRtcVersionName.
Module Gradle Scripts — Remove Publishing
stream-video-android-*/build.gradle.kts (e.g., .../bom/..., .../core/..., .../filters-video/..., .../previewdata/..., .../ui-compose/..., .../ui-core/..., .../ui-xml/...)
Removed alias usage of Maven publish plugin, deleted mavenPublishing { ... } blocks and related imports (AndroidSingleVariantLibrary, Configuration) across modules; switched some modules to stream-java-platform plugin and adjusted dependencies/constraints placement.
Dynamic Version Parsing & Usage Updates
stream-video-android-core/build.gradle.kts, demo-app/build.gradle.kts
Replaced static Configuration-based version fields with dynamic parsing of rootProject.version into MAJOR/MINOR/PATCH constants; updated demo app to use rootProject.version/rootProject.version.toString() instead of removed Configuration fields.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~25 minutes

Possibly related PRs

Suggested reviewers

  • aleksandar-apostolov

Poem

🐰 I hopped through builds and took a peep,
Constants gone, one version to keep.
Plugins now publish from a shared lair,
Workflows updated with tokens to spare.
Blessed be the carrot of tidy build care. 🥕

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly summarizes the main change: migrating publishing configuration to convention plugins and adopting a common workflow.
Description check ✅ Passed The description provides a clear goal, implementation details, and testing notes that align with the required template sections.
Linked Issues check ✅ Passed Changes directly address both AND-881 (removing module-specific publishing for convention plugins) and AND-781 (updating workflow to use common release process).
Out of Scope Changes check ✅ Passed All changes are directly scoped to the objectives: removing publishing configs, moving version to gradle.properties, and updating workflows.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing touches
  • 📝 Generate docstrings

📜 Recent review details

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Disabled knowledge base sources:

  • Linear integration is disabled by default for public repositories

You can enable these sources in your CodeRabbit configuration.

📥 Commits

Reviewing files that changed from the base of the PR and between 3b5b679 and 0151a33.

📒 Files selected for processing (13)
  • .github/workflows/publish-new-version.yml
  • build.gradle.kts
  • buildSrc/src/main/kotlin/io/getstream/video/android/Configuration.kt
  • demo-app/build.gradle.kts
  • gradle.properties
  • gradle/libs.versions.toml
  • stream-video-android-bom/build.gradle.kts
  • stream-video-android-core/build.gradle.kts
  • stream-video-android-filters-video/build.gradle.kts
  • stream-video-android-previewdata/build.gradle.kts
  • stream-video-android-ui-compose/build.gradle.kts
  • stream-video-android-ui-core/build.gradle.kts
  • stream-video-android-ui-xml/build.gradle.kts
💤 Files with no reviewable changes (6)
  • stream-video-android-ui-compose/build.gradle.kts
  • buildSrc/src/main/kotlin/io/getstream/video/android/Configuration.kt
  • stream-video-android-ui-xml/build.gradle.kts
  • stream-video-android-ui-core/build.gradle.kts
  • stream-video-android-filters-video/build.gradle.kts
  • stream-video-android-previewdata/build.gradle.kts
🚧 Files skipped from review as they are similar to previous changes (2)
  • gradle.properties
  • stream-video-android-bom/build.gradle.kts
🧰 Additional context used
📓 Path-based instructions (4)
**/*.{kt,kts}

📄 CodeRabbit inference engine (AGENTS.md)

**/*.{kt,kts}: Use PascalCase for types and Composables (e.g., StreamCallActivity, ParticipantGrid)
Use camelCase for functions and values
Use UPPER_SNAKE_CASE for constants only when truly constant
Prefer explicit visibility modifiers; limit internal leakage across modules
Keep critical RTC paths off the main thread; prefer coroutines with structured scopes
Monitor logging verbosity; rely on StreamVideoImpl.developmentMode for guardrails
Use KDoc (/** ... */) for public APIs and complex subsystems; link to Stream docs when relevant
Group large files with // region judiciously; keep commentary purposeful
Sanitize logs to avoid dumping JWTs, ICE tokens, or call IDs in verbose logs
Pause/resume capture on lifecycle changes; ensure background audio routing is intentional
Validate orientation, aspect ratio, and dynascale handling for both portrait/landscape phones and tablets
Keep concurrency deterministic—use structured coroutines and avoid global scope
Ensure cleanup/teardown paths handle cancellation and failure (important for sockets, queues, retries)

Files:

  • demo-app/build.gradle.kts
  • stream-video-android-core/build.gradle.kts
  • build.gradle.kts
**/*.{kt,java,kts,gradle.kts}

📄 CodeRabbit inference engine (AGENTS.md)

Follow Spotless formatting; ensure custom license headers are in spotless/ directory

Files:

  • demo-app/build.gradle.kts
  • stream-video-android-core/build.gradle.kts
  • build.gradle.kts
**/build.gradle.kts

📄 CodeRabbit inference engine (AGENTS.md)

Do not modify minSdk or targetSdk values; follow gradle.properties and module build.gradle.kts

Files:

  • demo-app/build.gradle.kts
  • stream-video-android-core/build.gradle.kts
  • build.gradle.kts
gradle/libs.versions.toml

📄 CodeRabbit inference engine (AGENTS.md)

Add new third-party dependencies through gradle/libs.versions.toml with reviewer buy-in

Files:

  • gradle/libs.versions.toml
🧠 Learnings (9)
📚 Learning: 2025-12-19T09:15:37.269Z
Learnt from: CR
Repo: GetStream/stream-video-android PR: 0
File: AGENTS.md:0-0
Timestamp: 2025-12-19T09:15:37.269Z
Learning: Applies to stream-video-android-previewdata/**/*.{kt,kts} : Keep test fixtures in `stream-video-android-previewdata`; avoid duplicating builder logic

Applied to files:

  • demo-app/build.gradle.kts
  • stream-video-android-core/build.gradle.kts
  • gradle/libs.versions.toml
  • build.gradle.kts
📚 Learning: 2025-12-19T09:15:37.269Z
Learnt from: CR
Repo: GetStream/stream-video-android PR: 0
File: AGENTS.md:0-0
Timestamp: 2025-12-19T09:15:37.269Z
Learning: Prefer Jetpack Compose for UI (`stream-video-android-ui-compose`); XML views supported via `stream-video-android-ui-xml`

Applied to files:

  • demo-app/build.gradle.kts
  • stream-video-android-core/build.gradle.kts
  • gradle/libs.versions.toml
  • build.gradle.kts
📚 Learning: 2025-12-19T09:15:37.269Z
Learnt from: CR
Repo: GetStream/stream-video-android PR: 0
File: AGENTS.md:0-0
Timestamp: 2025-12-19T09:15:37.269Z
Learning: Applies to **/build.gradle.kts : Do not modify `minSdk` or `targetSdk` values; follow `gradle.properties` and module `build.gradle.kts`

Applied to files:

  • stream-video-android-core/build.gradle.kts
  • gradle/libs.versions.toml
  • build.gradle.kts
📚 Learning: 2025-12-19T09:15:37.269Z
Learnt from: CR
Repo: GetStream/stream-video-android PR: 0
File: AGENTS.md:0-0
Timestamp: 2025-12-19T09:15:37.269Z
Learning: Applies to **/*.{kt,java} : Use Kotlin with JVM toolchain 17; Java is legacy-only

Applied to files:

  • stream-video-android-core/build.gradle.kts
  • gradle/libs.versions.toml
  • build.gradle.kts
📚 Learning: 2025-12-19T09:15:37.269Z
Learnt from: CR
Repo: GetStream/stream-video-android PR: 0
File: AGENTS.md:0-0
Timestamp: 2025-12-19T09:15:37.269Z
Learning: Applies to gradle/libs.versions.toml : Add new third-party dependencies through `gradle/libs.versions.toml` with reviewer buy-in

Applied to files:

  • gradle/libs.versions.toml
  • build.gradle.kts
📚 Learning: 2025-12-19T09:15:37.269Z
Learnt from: CR
Repo: GetStream/stream-video-android PR: 0
File: AGENTS.md:0-0
Timestamp: 2025-12-19T09:15:37.269Z
Learning: Applies to **/*.{kt,java,kts,gradle.kts} : Follow Spotless formatting; ensure custom license headers are in `spotless/` directory

Applied to files:

  • gradle/libs.versions.toml
📚 Learning: 2025-12-19T09:15:37.269Z
Learnt from: CR
Repo: GetStream/stream-video-android PR: 0
File: AGENTS.md:0-0
Timestamp: 2025-12-19T09:15:37.269Z
Learning: Applies to **/*.{kt,kts} : Use KDoc (`/** ... */`) for public APIs and complex subsystems; link to Stream docs when relevant

Applied to files:

  • build.gradle.kts
📚 Learning: 2025-12-19T09:15:37.269Z
Learnt from: CR
Repo: GetStream/stream-video-android PR: 0
File: AGENTS.md:0-0
Timestamp: 2025-12-19T09:15:37.269Z
Learning: Maintain binary compatibility in modules shipped to Maven; prefer additive changes over breaking changes

Applied to files:

  • build.gradle.kts
📚 Learning: 2025-12-19T09:15:37.269Z
Learnt from: CR
Repo: GetStream/stream-video-android PR: 0
File: AGENTS.md:0-0
Timestamp: 2025-12-19T09:15:37.269Z
Learning: Applies to **/*.{kt,java} : Avoid wildcard imports

Applied to files:

  • build.gradle.kts
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (5)
  • GitHub Check: base-android-ci / Build
  • GitHub Check: base-android-ci / Run static checks
  • GitHub Check: base-android-ci / Run unit tests
  • GitHub Check: Build / compose apks
  • GitHub Check: compare-sdk-sizes / Compare SDK sizes
🔇 Additional comments (12)
.github/workflows/publish-new-version.yml (5)

7-14: LGTM: Bump input configuration is well-structured.

Making the bump input required while providing a sensible default ensures the workflow always receives a valid version bump type.


16-18: LGTM: Concurrency control prevents release conflicts.

The concurrency group ensures only one release runs at a time, preventing race conditions during version bumps and publishing.


30-31: LGTM: Appropriate permissions for release workflow.

The contents: write permission is necessary for creating release tags and GitHub releases.


37-42: Verify secret parameter names match the reusable workflow.

The secret parameter names have been updated to be more descriptive (e.g., github-token, maven-central-username, signing-key). Confirm these parameter names match exactly what the [email protected] workflow expects.

The verification script above (line 33 comment) will show the expected inputs and secrets for the reusable workflow.


33-33: The migration to stream-build-conventions-android/.github/workflows/[email protected] is compatible and safe. The workflow correctly provides the required bump input and all six secrets (github-token, maven-central-username, maven-central-password, signing-key, signing-key-id, signing-key-password) with the correct parameter names. The optional inputs (version-properties-file and snapshot) have appropriate defaults and are not required.

demo-app/build.gradle.kts (2)

47-47: LGTM! Clean migration to dynamic versioning.

The version name now uses rootProject.version instead of a hardcoded constant, aligning with the PR objective to centralize version management in gradle.properties.


196-202: LGTM! Consistent version usage.

The output version name mapping correctly uses rootProject.version, maintaining consistency with the defaultConfig changes.

build.gradle.kts (2)

24-25: LGTM! New convention plugins for unified publishing.

The Java library and platform plugins align with the PR objective to adopt shared convention plugins for publishing configuration.


65-70: LGTM! Publishing configuration consolidated to convention plugins.

The publishing block correctly centralizes configuration and maintains existing artifact naming. The moduleArtifactIdOverrides mapping preserves the published artifact ID stream-video-android-xml while the module directory remains stream-video-android-ui-xml.

gradle/libs.versions.toml (2)

11-11: LGTM! Version bump for new publishing capabilities.

The streamConventions version bump to 0.5.0 enables the new Java library and platform publishing plugins used throughout this PR.


249-250: LGTM! New convention plugins for publishing.

The Java library and platform plugins are correctly declared with consistent naming and versioning. These plugins support the migration to shared publishing configuration as outlined in the PR objectives.

stream-video-android-core/build.gradle.kts (1)

64-73: Version format in gradle.properties is valid and correctly parsed.

The current version "1.18.3" in gradle.properties adheres to the required MAJOR.MINOR.PATCH semantic versioning format. The parsing logic at lines 64-73 correctly extracts and validates this format, handling optional suffixes (e.g., "-SNAPSHOT") and enforcing exactly three numeric parts.

The code is robust and will continue to work correctly as long as gradle.properties and CI version overrides maintain the MAJOR.MINOR.PATCH[suffix] format.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

Fix all issues with AI Agents 🤖
In @build.gradle.kts:
- Around line 65-70: The change to moduleArtifactIdOverrides that maps
"stream-video-android-ui-xml" -> "stream-video-android-xml" is a breaking
artifact ID change; either publish a deprecated artifact under the old ID or
document a migration. Fix by (1) restoring a published artifact under the old ID
as a deprecated/shim coordinate (publish a dummy module or add an artifact
alias) so existing consumers resolve, or (2) if publishing a shim is not
possible, update documentation: add a clear breaking-change entry and migration
steps in CHANGELOG.md (under the stream-video-android-xml section), and update
README.md and AGENTS.md to replace references to "stream-video-android-ui-xml"
with the new "stream-video-android-xml" and include upgrade instructions and the
version that introduced the change; ensure the publishing block's
moduleArtifactIdOverrides comment mentions the migration approach chosen.
🧹 Nitpick comments (4)
.github/workflows/publish-new-version.yml (1)

7-14: Optional: required: true is redundant when a default value is provided.

Since the bump input has default: minor, a value will always be present, making required: true unnecessary. However, this is not incorrect and may serve as explicit documentation of intent.

stream-video-android-bom/build.gradle.kts (1)

6-14: Spotless configuration workaround can be improved.

The target("no-files-to-format") approach works but is unconventional. Consider disabling Spotless entirely for this module or using a more explicit pattern.

🔎 Alternative approach

If the stream.java.platform plugin automatically applies Spotless, consider explicitly disabling it:

-spotless {
-    // Point to non-existent file pattern because this module has no source files
-    java {
-        target("no-files-to-format")
-    }
-    kotlin {
-        target("no-files-to-format")
-    }
-}
+// Disable Spotless for BOM module (no source files)
+spotless {
+    java {
+        targetExclude("**/*")
+    }
+    kotlin {
+        targetExclude("**/*")
+    }
+}

Or check if the convention plugin provides a way to skip Spotless for specific modules.

demo-app/build.gradle.kts (1)

47-47: Standardize version string formatting across build.gradle.kts.

An inconsistency exists in how rootProject.version is formatted:

  • Line 47: rootProject.version.toString() (explicit conversion)
  • Line 199: "${rootProject.version} ($playVersionCode)" (string interpolation)

Both approaches are equivalent—string templates in Kotlin implicitly call toString(). If standardizing, either style works equally well; string interpolation is idiomatic Kotlin. The version is properly defined in gradle.properties.

stream-video-android-core/build.gradle.kts (1)

64-73: gradle.properties is properly configured; consider adding inline documentation for code clarity.

The version property in gradle.properties is set to 1.18.2, which is a valid semantic version format. The parsing logic at lines 64-73 will work correctly and extract the major, minor, and patch components without issues.

For future maintainability, consider adding a brief comment explaining that the logic strips qualifiers (e.g., "-SNAPSHOT") when extracting numeric version components but preserves them in the full version string:

+        // Extract major, minor, patch from version string.
+        // Qualifiers like "-SNAPSHOT" are excluded from numeric fields
+        // but preserved in STREAM_VIDEO_VERSION.
         val versionParts =
             version.toString()
                 .takeWhile { it.isDigit() || it == '.' }
                 .split(".")
                 .mapNotNull(String::toIntOrNull)
                 .also { require(it.size == 3) { "Unexpected version format: $version" } }
📜 Review details

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Disabled knowledge base sources:

  • Linear integration is disabled by default for public repositories

You can enable these sources in your CodeRabbit configuration.

📥 Commits

Reviewing files that changed from the base of the PR and between b9c9ceb and 3b5b679.

📒 Files selected for processing (13)
  • .github/workflows/publish-new-version.yml
  • build.gradle.kts
  • buildSrc/src/main/kotlin/io/getstream/video/android/Configuration.kt
  • demo-app/build.gradle.kts
  • gradle.properties
  • gradle/libs.versions.toml
  • stream-video-android-bom/build.gradle.kts
  • stream-video-android-core/build.gradle.kts
  • stream-video-android-filters-video/build.gradle.kts
  • stream-video-android-previewdata/build.gradle.kts
  • stream-video-android-ui-compose/build.gradle.kts
  • stream-video-android-ui-core/build.gradle.kts
  • stream-video-android-ui-xml/build.gradle.kts
💤 Files with no reviewable changes (6)
  • stream-video-android-previewdata/build.gradle.kts
  • stream-video-android-ui-core/build.gradle.kts
  • buildSrc/src/main/kotlin/io/getstream/video/android/Configuration.kt
  • stream-video-android-filters-video/build.gradle.kts
  • stream-video-android-ui-xml/build.gradle.kts
  • stream-video-android-ui-compose/build.gradle.kts
🧰 Additional context used
📓 Path-based instructions (4)
**/*.{kt,kts}

📄 CodeRabbit inference engine (AGENTS.md)

**/*.{kt,kts}: Use PascalCase for types and Composables (e.g., StreamCallActivity, ParticipantGrid)
Use camelCase for functions and values
Use UPPER_SNAKE_CASE for constants only when truly constant
Prefer explicit visibility modifiers; limit internal leakage across modules
Keep critical RTC paths off the main thread; prefer coroutines with structured scopes
Monitor logging verbosity; rely on StreamVideoImpl.developmentMode for guardrails
Use KDoc (/** ... */) for public APIs and complex subsystems; link to Stream docs when relevant
Group large files with // region judiciously; keep commentary purposeful
Sanitize logs to avoid dumping JWTs, ICE tokens, or call IDs in verbose logs
Pause/resume capture on lifecycle changes; ensure background audio routing is intentional
Validate orientation, aspect ratio, and dynascale handling for both portrait/landscape phones and tablets
Keep concurrency deterministic—use structured coroutines and avoid global scope
Ensure cleanup/teardown paths handle cancellation and failure (important for sockets, queues, retries)

Files:

  • demo-app/build.gradle.kts
  • build.gradle.kts
  • stream-video-android-core/build.gradle.kts
  • stream-video-android-bom/build.gradle.kts
**/*.{kt,java,kts,gradle.kts}

📄 CodeRabbit inference engine (AGENTS.md)

Follow Spotless formatting; ensure custom license headers are in spotless/ directory

Files:

  • demo-app/build.gradle.kts
  • build.gradle.kts
  • stream-video-android-core/build.gradle.kts
  • stream-video-android-bom/build.gradle.kts
**/build.gradle.kts

📄 CodeRabbit inference engine (AGENTS.md)

Do not modify minSdk or targetSdk values; follow gradle.properties and module build.gradle.kts

Files:

  • demo-app/build.gradle.kts
  • build.gradle.kts
  • stream-video-android-core/build.gradle.kts
  • stream-video-android-bom/build.gradle.kts
gradle/libs.versions.toml

📄 CodeRabbit inference engine (AGENTS.md)

Add new third-party dependencies through gradle/libs.versions.toml with reviewer buy-in

Files:

  • gradle/libs.versions.toml
🧠 Learnings (9)
📚 Learning: 2025-12-19T09:15:37.269Z
Learnt from: CR
Repo: GetStream/stream-video-android PR: 0
File: AGENTS.md:0-0
Timestamp: 2025-12-19T09:15:37.269Z
Learning: Applies to stream-video-android-previewdata/**/*.{kt,kts} : Keep test fixtures in `stream-video-android-previewdata`; avoid duplicating builder logic

Applied to files:

  • demo-app/build.gradle.kts
  • build.gradle.kts
  • gradle/libs.versions.toml
  • stream-video-android-core/build.gradle.kts
  • stream-video-android-bom/build.gradle.kts
📚 Learning: 2025-12-19T09:15:37.269Z
Learnt from: CR
Repo: GetStream/stream-video-android PR: 0
File: AGENTS.md:0-0
Timestamp: 2025-12-19T09:15:37.269Z
Learning: Applies to **/build.gradle.kts : Do not modify `minSdk` or `targetSdk` values; follow `gradle.properties` and module `build.gradle.kts`

Applied to files:

  • demo-app/build.gradle.kts
  • build.gradle.kts
  • gradle/libs.versions.toml
  • stream-video-android-core/build.gradle.kts
  • stream-video-android-bom/build.gradle.kts
📚 Learning: 2025-12-19T09:15:37.269Z
Learnt from: CR
Repo: GetStream/stream-video-android PR: 0
File: AGENTS.md:0-0
Timestamp: 2025-12-19T09:15:37.269Z
Learning: Prefer Jetpack Compose for UI (`stream-video-android-ui-compose`); XML views supported via `stream-video-android-ui-xml`

Applied to files:

  • demo-app/build.gradle.kts
  • build.gradle.kts
  • gradle/libs.versions.toml
  • stream-video-android-core/build.gradle.kts
  • stream-video-android-bom/build.gradle.kts
📚 Learning: 2025-12-19T09:15:37.269Z
Learnt from: CR
Repo: GetStream/stream-video-android PR: 0
File: AGENTS.md:0-0
Timestamp: 2025-12-19T09:15:37.269Z
Learning: Applies to **/*.{kt,java} : Use Kotlin with JVM toolchain 17; Java is legacy-only

Applied to files:

  • build.gradle.kts
  • gradle/libs.versions.toml
  • stream-video-android-core/build.gradle.kts
  • stream-video-android-bom/build.gradle.kts
📚 Learning: 2025-12-19T09:15:37.269Z
Learnt from: CR
Repo: GetStream/stream-video-android PR: 0
File: AGENTS.md:0-0
Timestamp: 2025-12-19T09:15:37.269Z
Learning: Applies to **/*.{kt,java} : Avoid wildcard imports

Applied to files:

  • build.gradle.kts
📚 Learning: 2025-12-19T09:15:37.269Z
Learnt from: CR
Repo: GetStream/stream-video-android PR: 0
File: AGENTS.md:0-0
Timestamp: 2025-12-19T09:15:37.269Z
Learning: Applies to gradle/libs.versions.toml : Add new third-party dependencies through `gradle/libs.versions.toml` with reviewer buy-in

Applied to files:

  • gradle/libs.versions.toml
📚 Learning: 2025-12-19T09:15:37.269Z
Learnt from: CR
Repo: GetStream/stream-video-android PR: 0
File: AGENTS.md:0-0
Timestamp: 2025-12-19T09:15:37.269Z
Learning: Applies to **/*.{kt,java,kts,gradle.kts} : Follow Spotless formatting; ensure custom license headers are in `spotless/` directory

Applied to files:

  • gradle/libs.versions.toml
  • stream-video-android-bom/build.gradle.kts
📚 Learning: 2025-12-19T09:15:37.269Z
Learnt from: CR
Repo: GetStream/stream-video-android PR: 0
File: AGENTS.md:0-0
Timestamp: 2025-12-19T09:15:37.269Z
Learning: Maintain binary compatibility in modules shipped to Maven; prefer additive changes over breaking changes

Applied to files:

  • stream-video-android-core/build.gradle.kts
📚 Learning: 2025-12-19T09:15:37.269Z
Learnt from: CR
Repo: GetStream/stream-video-android PR: 0
File: AGENTS.md:0-0
Timestamp: 2025-12-19T09:15:37.269Z
Learning: Applies to **/*.{kt,kts} : Use KDoc (`/** ... */`) for public APIs and complex subsystems; link to Stream docs when relevant

Applied to files:

  • stream-video-android-bom/build.gradle.kts
🧬 Code graph analysis (1)
stream-video-android-bom/build.gradle.kts (1)
stream-video-android-ui-xml/src/main/kotlin/io/getstream/video/android/xml/initializer/VideoUIInitializer.kt (1)
  • dependencies (35-35)
🔇 Additional comments (10)
.github/workflows/publish-new-version.yml (4)

16-18: LGTM! Concurrency configuration is appropriate for release workflows.

The cancel-in-progress: false setting ensures that in-progress releases complete rather than being canceled by new triggers, which is the correct pattern for publishing workflows.


33-33: No action needed. The external workflow version v0.5.0 exists and the interface is compatible. All required inputs (bump) and secrets (github-token, maven-central-username, maven-central-password, signing-key, signing-key-id, signing-key-password) are correctly passed. The removed inputs (ref, file-path, excluded-modules, use-official-plugin, documentation-tasks) are no longer needed—the external workflow handles branch logic and version management internally.


37-42: Ensure all six repository secrets are configured in GitHub repository settings.

The secret parameter names and mappings are correctly aligned with the external workflow's interface. Verify that the following secrets exist in the GitHub repository settings with their corresponding values:

  • STREAM_PUBLIC_BOT_TOKEN (GitHub token with repo write permissions)
  • OSSRH_USERNAME (Maven Central username)
  • OSSRH_PASSWORD (Maven Central password)
  • SIGNING_KEY (GPG signing key)
  • SIGNING_KEY_ID (GPG signing key ID)
  • SIGNING_PASSWORD (GPG signing key password)

30-31: Verify whether the workflow actually requires contents: write permission.

The external workflow at GetStream/stream-build-conventions-android/.github/workflows/[email protected] could not be accessed to confirm its permission requirements. Please verify that the called workflow or other operations in publish-new-version.yml actually require the contents: write permission before adding it, following the principle of least privilege.

gradle.properties (1)

48-49: LGTM! Version centralization aligns with Gradle best practices.

Moving the version to gradle.properties enables it to be consumed as project.version throughout the build and allows CLI overrides via -Pversion=X.Y.Z.

build.gradle.kts (1)

24-25: New Java plugins support platform-based publishing.

The addition of stream.java.library and stream.java.platform plugins completes the migration from direct Maven Publish configuration to the centralized convention plugins (v0.5.0).

gradle/libs.versions.toml (2)

249-250: New plugin declarations align with publishing migration.

The stream-java-library and stream-java-platform plugins are correctly added to support the new publishing approach.


11-11: Verify that 0.5.0 supports the stream.java.library and stream.java.platform plugins.

While version 0.5.0 is published on Maven Central (Dec 16, 2025), its release notes do not explicitly document support for these plugins. Additionally, Gradle's java-platform and java-library plugins are documented as mutually exclusive—they cannot be applied to the same project. Confirm that 0.5.0 adds support for these plugins and that their usage in this PR aligns with Gradle's plugin architecture.

stream-video-android-bom/build.gradle.kts (2)

16-25: BOM dependencies correctly use constraints.

The constraints block properly declares the modules included in the BOM without creating direct dependencies.


3-3: BOM migration to platform plugin is correct.

Using stream.java.platform for the BOM module is the appropriate approach for publishing a Gradle platform (BOM) artifact. The plugin is properly aliased to io.getstream.java.platform in gradle/libs.versions.toml, and the BOM correctly declares all internal modules as constraints in the dependencies block.

@gpunto gpunto force-pushed the plugins.publishing branch from 3b5b679 to 0151a33 Compare January 7, 2026 09:25
@sonarqubecloud
Copy link

sonarqubecloud bot commented Jan 7, 2026

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr:ci CI / GitHub Actions / workflow updates

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants