Skip to content

Commit

Permalink
Gradle 7.0 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
chali committed Feb 18, 2021
1 parent a8ec41d commit afa18d2
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,7 @@ public class RecommendationProviderContainer {
public static final RecommendationStrategies ConflictResolved = RecommendationStrategies.ConflictResolved;

public RecommendationProviderContainer(Project project) {
if (GradleVersion.current().getBaseVersion().compareTo(GradleVersion.version("6.1")) >= 0) {
createList(project);
} else {
providers = new DefaultNamedDomainObjectList<RecommendationProvider>(RecommendationProvider.class, null, new RecommendationProviderNamer());
}
createList(project);
this.project = project;
this.mavenBomProvider = getMavenBomRecommendationProvider();
providers.add(this.mavenBomProvider);
Expand Down

0 comments on commit afa18d2

Please sign in to comment.