Skip to content

Declare variants for publishing for AGP 8#1915

Merged
r0h0gg6 merged 1 commit intoelectrode-io:masterfrom
r0h0gg6:container-android-publishing-fix
Aug 1, 2025
Merged

Declare variants for publishing for AGP 8#1915
r0h0gg6 merged 1 commit intoelectrode-io:masterfrom
r0h0gg6:container-android-publishing-fix

Conversation

@r0h0gg6
Copy link
Copy Markdown
Contributor

@r0h0gg6 r0h0gg6 commented Aug 1, 2025

Starting with AGP 8.0:
Automatic component creation is disabled by default.
To publish, you need to manually configure component creation using the publishing DSL.
When configuring multiple variants for publishing, the component name is set to "default" by default, unless we specify a different name in the multipleVariants function call.
Therefore, if we were previously publishing the "release" variant using components.release, we would now refer to the component as components.default when using the multiple variants publishing approach with the default component name.

The change from components.release to components.default is a consequence of AGP 8.0 disabling automatic component creation and adopting a different naming convention for the default component created when publishing multiple variants using the publishing DSL. We now will use multipleVariants

Ref: https://developer.android.com/reference/tools/gradle-api/8.3/null/com/android/build/api/dsl/Publishing

@r0h0gg6 r0h0gg6 merged commit 437da44 into electrode-io:master Aug 1, 2025
10 checks passed
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