Closed Sanskarbajaj closed 7 months ago
Hi @Sanskarbajaj ; Here's a couple of recipes that might suit your needs; hope that helps.
You can see all Gradle recipes through: https://docs.openrewrite.org/recipes/gradle/
Changes the selected Gradle plugin to the new plugin. https://docs.openrewrite.org/recipes/gradle/plugins/changeplugin
Change a Gradle dependency coordinates. The newGroupId or newArtifactId MUST be different from before. https://docs.openrewrite.org/recipes/gradle/changedependency
Upgrade the version of a dependency in a build.gradle file. Supports updating dependency declarations of various forms.
https://docs.openrewrite.org/recipes/gradle/upgradedependencyversion
You can see all Maven recipes through: https://docs.openrewrite.org/recipes/maven/
Change the groupId and/or the artifactId of a specified Maven plugin. https://docs.openrewrite.org/recipes/maven/changeplugingroupidandartifactid
Change a Maven dependency coordinates. The newGroupId or newArtifactId MUST be different from before. https://docs.openrewrite.org/recipes/maven/changedependencygroupidandartifactid
Upgrade the version of a dependency by specifying a group and (optionally) an artifact using Node Semver advanced range selectors, allowing more precise control over version updates to patch or minor releases. https://docs.openrewrite.org/recipes/maven/upgradedependencyversion
Note that we also have a selection of recipes for both Maven and Gradle: https://docs.openrewrite.org/recipes/java/dependencies
For Gradle projects, upgrade the version of a dependency in a build.gradle file. Supports updating dependency declarations of various forms:
For Maven projects, upgrade the version of a dependency by specifying a group and (optionally) an artifact using Node Semver advanced range selectors, allowing more precise control over version updates to patch or minor releases. https://docs.openrewrite.org/recipes/java/dependencies/upgradedependencyversion
Thanks @timtebeek :)
Hi @timtebeek could you help me with this org.openrewrite.maven.ChangeManagedDependencyGroupIdAndArtifactId this is something that we use for maven whats for gradle?
There's no direct replacement for the Maven managed dependency recipe in Gradle (yet). You might want to open issue to describe what you're looking for. Perhaps you'd be interested in adding Gradle dependency constraints for instance.
like for maven we have something like this org.openrewrite.maven.ChangePluginGroupIdAndArtifactId
what if i want to use for gradle what can i use