Skip to content

Ability to mention releaseVersion and releaseVersionCode via gradle command arguments #2705

@SathyaKrishnaPrabhuTadepalli

Description

[REQUIRED] Use case description

One way of using mainline source, we can use the gradle task publishReleasePublicationToMavenLocal
It will publish all the libraries to maven local and the consuming app can import these libraries.
To publish a version, the parameter releaseVersion in constants.gradle has to be updated.

Proposed solution

We can have a better way to specify the release version via gradle command arguments.
For this to work the following changes has to be done in constants.gradle
releaseVersion = findProperty('releaseVersion') ?: '1.5.0-alpha01'
releaseVersionCode = findProperty('releaseVersionCode') ?: 1_005_000_0_01

./gradlew publishReleasePublicationToMavenLocal -PreleaseVersion=2025.08.08-Dev

Alternatives considered

Workaround is to update the constants.gradle only

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions