Skip to content

Commit

Permalink
Remove deprecated methods now that a new version of the tooling api i…
Browse files Browse the repository at this point in the history
…s published
  • Loading branch information
shanman190 committed Sep 5, 2024
1 parent 3504541 commit ca78f0c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -167,11 +167,11 @@ private MavenMetadata downloadMetadata(String groupId, String artifactId, List<M

private List<MavenRepository> determineRepos(@Nullable String configuration) {
if (gradleSettings != null) {
return gradleSettings.getPluginRepositories();
return gradleSettings.getBuildscript().getMavenRepositories();
}
Objects.requireNonNull(gradleProject);
return "classpath".equals(configuration) ?
gradleProject.getMavenPluginRepositories() :
gradleProject.getBuildscript().getMavenRepositories() :
gradleProject.getMavenRepositories();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -247,9 +247,9 @@ private J.MethodInvocation maybeUpdateApplySyntax(J.MethodInvocation m) {

private List<MavenRepository> getPluginRepositories() {
if (gradleProject != null) {
return gradleProject.getMavenPluginRepositories();
return gradleProject.getBuildscript().getMavenRepositories();
}
return gradleSettings.getPluginRepositories();
return gradleSettings.getBuildscript().getMavenRepositories();
}
}
);
Expand Down

0 comments on commit ca78f0c

Please sign in to comment.