Skip to content

chore(android): use property assignment syntax in publish-module.gradle - #120

Open
andredestro wants to merge 1 commit into
nextfrom
fix/RMET-5661/gradle-property-assignment
Open

andredestro wants to merge 1 commit into
nextfrom
fix/RMET-5661/gradle-property-assignment

Conversation

@andredestro

@andredestro andredestro commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

Description

scripts/android/publish-module.gradle set the Maven coordinates with the propName value syntax (groupId 'com.capacitorjs', artifactId ..., version ...). Gradle 9.8 warns about it during native Android publishing, and Gradle 10 removes it:

Properties should be assigned using the 'propName = value' syntax. Setting a property via the Gradle-generated 'propName value' or 'propName(value)' syntax in Groovy DSL has been deprecated. This is scheduled to be removed in Gradle 10.

This PR uses = on those 3 lines. Only publishing runs this file; apps never do.

Change Type

  • Fix
  • Feature
  • Refactor
  • Breaking Change
  • Documentation
  • Other (CI, chores, etc.)

Rationale / Problems Fixed

RMET-5661

Tests or Reproductions

Gradle 9.8.2, publish dry run: cd android && CAP_PLUGIN_PUBLISH=true ./gradlew publishReleasePublicationToSonatypeRepository -m --warning-mode all

Before After
Property syntax deprecations 3 0
Dry run successful successful

The POM from generatePomFileForReleasePublication (same env values before and after) is byte-identical, so the published coordinates don't change.

Platforms Affected

  • Android
  • iOS
  • Web

Gradle 9 deprecates setting properties with the propName value syntax and
Gradle 10 removes it. Use = for groupId, artifactId and version.
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.

2 participants