Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide option to override catalog versions from CLI #594

Merged
merged 1 commit into from
Jul 28, 2023

Conversation

melix
Copy link
Contributor

@melix melix commented Jul 27, 2023

This commit adds the ability to override the versions of dependencies declared in the catalogs that the build uses. For example, to override the libs.managed.jackson version, you can specify on the command-line:

./gradlew :foo -Poverride.libs.managed.jackson=2.6.0

Alternatively, it is possible to provide an override properties file:

./gradlew foo -Poverride.file.libs=overrides.properties

and the properties file must contain the following entry:

managed.jackson=2.6.0

in order to behave the same as the 1st example.

This commit adds the ability to override the versions of dependencies
declared in the catalogs that the build uses. For example, to override
the `libs.managed.jackson` version, you can specify on the command-line:

`./gradlew :foo -Poverride.libs.managed.jackson=2.6.0`

Alternatively, it is possible to provide an override properties file:

`./gradlew foo -Poverride.file.libs=overrides.properties`

and the properties file must contain the following entry:

`managed.jackson=2.6.0`

in order to behave the same as the 1st example.
@melix melix added this to the 6.5.4 milestone Jul 27, 2023
@melix melix requested a review from yawkat July 27, 2023 13:03
@melix melix self-assigned this Jul 27, 2023
@melix melix merged commit 048b5fe into master Jul 28, 2023
@melix melix deleted the cc/override-versions branch July 28, 2023 13:34
@yawkat
Copy link
Member

yawkat commented Jul 31, 2023

thanks!

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