Skip to content

Commit

Permalink
Handle update dependency version operation for Gradle
Browse files Browse the repository at this point in the history
(cherry picked from commit 964ba5b)
  • Loading branch information
gsmet committed Aug 25, 2023
1 parent 43dce52 commit 0e84b87
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@ public UpdateDependencyVersionOperation(String groupId, String artifactId, Strin
@Override
public Map<String, Object> single(BuildTool buildTool) {
switch (buildTool) {
case GRADLE:
return Map.of("org.openrewrite.gradle.UpgradeDependencyVersion",
Map.of(
"groupId", groupId,
"artifactId", artifactId,
"newVersion", newVersion));
case MAVEN:
return Map.of("org.openrewrite.maven.UpgradeDependencyVersion",
Map.of(
Expand Down

0 comments on commit 0e84b87

Please sign in to comment.