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

Support updating Gradle programmatic Version Catalogs #4852

Open
shanman190 opened this issue Jan 6, 2025 · 2 comments
Open

Support updating Gradle programmatic Version Catalogs #4852

shanman190 opened this issue Jan 6, 2025 · 2 comments
Labels
enhancement New feature or request

Comments

@shanman190
Copy link
Contributor

What problem are you trying to solve?

Enable updating of version catalogs defined within settings.gradle scripts.

Describe the solution you'd like

I think either of the following would be a reasonable solution:

  • UpgradeDependencyVersion and UpgradePluginVersion also handle programmatic version catalog updates
  • New recipes to perform these updates

Have you considered any alternatives or workarounds?

None exist right now without a user crafting a custom recipe.

Additional context

Originally asked for here.

Are you interested in contributing this feature to OpenRewrite?

Always. :)

@shanman190 shanman190 added the enhancement New feature or request label Jan 6, 2025
@knutwannheden
Copy link
Contributor

Without having given it much thought I would have gravitated towards extending the existing recipe. I also wonder if we should extend the GradleProject marker with some kind of flag that the dependencies are managed externally in TOML.

@shanman190
Copy link
Contributor Author

Yeah, I gravitate toward updating the existing recipes as well rather than creating new ones.

As far as the flag for external dependencies in TOML, I would think that's more closely aligned to #4400 rather than this issue in particular since here the versions are declared directly within the settings.gradle file as defined here:
https://docs.gradle.org/current/userguide/version_catalogs.html#sec:programmatic-catalog-versions

@timtebeek timtebeek moved this to Backlog in OpenRewrite Jan 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Backlog
Development

No branches or pull requests

2 participants