Skip to content
This repository was archived by the owner on May 14, 2025. It is now read-only.

Update Openrewrite Version to 8.45.0 #216

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ ext {
set('jarchivelibVersion', '1.2.0')
set('kohsukeVersion', '1.301')
set('gitlab4jVersion', '4.19.0')
set('openrewriteVersion', '8.13.4')
set('openrewriteVersion', '8.45.0')
set('antVersion', '1.10.9')
set('mavenModelVersion', '3.5.4')
set('tikaVersion', '1.18')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -614,7 +614,9 @@ private void mergeMavenRepositories(Path currentProjectPomPath, Model currentMod
}
else {
AddRepository recipeAddRepository = getRecipeAddRepository(candidateRepository.getId(),
candidateRepository.getUrl(), candidateRepository.getName(), false, false);
candidateRepository.getUrl(), candidateRepository.getName(),
false, false,
AddRepository.Type.Repository);
List<SourceFile> pomFiles = mavenParser.parse(paths, this.currentProjectPath, getExecutionContext())
.toList();
List<Result> resultList = recipeAddRepository
Expand Down Expand Up @@ -701,8 +703,8 @@ public TreeVisitor<?, ExecutionContext> getVisitor() {
}

public static AddRepository getRecipeAddRepository(String id, String url, String name, boolean snapshotsEnabled,
boolean releasesEnabled) {
return new AddRepository(id, url, name, null, snapshotsEnabled, null, null, releasesEnabled, null, null);
boolean releasesEnabled, AddRepository.Type repositoryType) {
return new AddRepository(id, url, name, null, snapshotsEnabled, null, null, releasesEnabled, null, null, repositoryType);
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@
import java.util.List;
import java.util.Optional;

import org.openrewrite.shaded.jgit.diff.Edit;
import org.openrewrite.shaded.jgit.diff.EditList;
import org.openrewrite.shaded.jgit.diff.HistogramDiff;
import org.openrewrite.shaded.jgit.diff.RawText;
import org.openrewrite.shaded.jgit.diff.RawTextComparator;
import org.openrewrite.jgit.diff.Edit;
import org.openrewrite.jgit.diff.EditList;
import org.openrewrite.jgit.diff.HistogramDiff;
import org.openrewrite.jgit.diff.RawText;
import org.openrewrite.jgit.diff.RawTextComparator;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

Expand Down